this.applicationContext = applicationContext;
}
@Test
public void interceptors() {
PayloadRootAnnotationMethodEndpointMapping endpointMapping = this.applicationContext.getBean(
PayloadRootAnnotationMethodEndpointMapping.class);
assertEquals(0, endpointMapping.getOrder());
EndpointInterceptor[] interceptors = endpointMapping.getInterceptors();
assertEquals(1, interceptors.length);
assertTrue(interceptors[0] instanceof MyInterceptor);
}