diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcAutoConfigurationTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcAutoConfigurationTests.java index c6ad430f12..7cf20f0601 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcAutoConfigurationTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcAutoConfigurationTests.java @@ -148,7 +148,7 @@ public class EndpointWebMvcAutoConfigurationTests { assertContent("/endpoint", ports.get().management, "endpointoutput"); List interceptors = (List) ReflectionTestUtils.getField( this.applicationContext.getBean(EndpointHandlerMapping.class), - "interceptors"); + "handlerInterceptors"); assertEquals(1, interceptors.size()); this.applicationContext.close(); assertAllClosed();