Map<String, RequestDispatchingEndpointAdapter> adapters = beanDefinitionContext.getBeansOfType(RequestDispatchingEndpointAdapter.class);
Assert.assertEquals(adapters.size(), 1);
// 1st endpoint adapter
RequestDispatchingEndpointAdapter adapter = adapters.get("endpointAdapter");
Assert.assertEquals(adapter.getMappingKeyExtractor(), beanDefinitionContext.getBean("mappingKeyExtractor", MappingKeyExtractor.class));
Assert.assertEquals(adapter.getMappingStrategy(), beanDefinitionContext.getBean("mappingStrategy", EndpointAdapterMappingStrategy.class));
}