diff --git a/pom.xml b/pom.xml
index 827b373..b6862ec 100644
--- a/pom.xml
+++ b/pom.xml
@@ -39,7 +39,7 @@
3.0.1
1.6.13
- 3.5.0
+ 4.1.5
3.3.4
1.1.2
diff --git a/src/test/java/io/github/piszmog/cloudconfig/template/impl/LocalConfigTemplateTest.java b/src/test/java/io/github/piszmog/cloudconfig/template/impl/LocalConfigTemplateTest.java
index 3e2c9af..e727fec 100644
--- a/src/test/java/io/github/piszmog/cloudconfig/template/impl/LocalConfigTemplateTest.java
+++ b/src/test/java/io/github/piszmog/cloudconfig/template/impl/LocalConfigTemplateTest.java
@@ -55,7 +55,7 @@ public void testInit_header() {
template.init();
assertThat(template).extracting("restTemplate")
.extracting("interceptors")
- .asList()
+ .asInstanceOf(InstanceOfAssertFactories.LIST)
.hasSize(1)
.first()
.isInstanceOf(ConfigServicePropertySourceLocator.GenericRequestHeaderInterceptor.class);
diff --git a/src/test/java/io/github/piszmog/cloudconfig/template/impl/OAuth2ConfigTemplateTest.java b/src/test/java/io/github/piszmog/cloudconfig/template/impl/OAuth2ConfigTemplateTest.java
index 86299e0..d698ede 100644
--- a/src/test/java/io/github/piszmog/cloudconfig/template/impl/OAuth2ConfigTemplateTest.java
+++ b/src/test/java/io/github/piszmog/cloudconfig/template/impl/OAuth2ConfigTemplateTest.java
@@ -2,6 +2,7 @@
import io.pivotal.spring.cloud.config.client.ConfigClientOAuth2Properties;
import io.pivotal.spring.cloud.config.client.OAuth2AuthorizedClientHttpRequestInterceptor;
+import org.assertj.core.api.InstanceOfAssertFactories;
import org.junit.jupiter.api.Test;
import org.springframework.cloud.config.client.ConfigClientProperties;
import org.springframework.core.env.StandardEnvironment;
@@ -22,11 +23,15 @@ public void testInit() {
template.init();
assertThat(template).extracting("restTemplate")
.extracting("interceptors")
- .asList()
+ .asInstanceOf(InstanceOfAssertFactories.LIST)
.hasSize(1)
.first()
.isInstanceOf(OAuth2AuthorizedClientHttpRequestInterceptor.class)
- .extracting("clientRegistration")
+ .extracting("authorizedManager")
+ .extracting("authorizedClientService")
+ .extracting("clientRegistrationRepository")
+ .extracting("registrations")
+ .extracting("cloud-config-client")
.hasFieldOrPropertyWithValue("registrationId", "cloud-config-client")
.hasFieldOrPropertyWithValue("clientId", "clientId")
.hasFieldOrPropertyWithValue("clientSecret", "secret")