@Test
public void endpointAdapters() {
Map<String, EndpointAdapter> result =
applicationContext.getBeansOfType(EndpointAdapter.class);
assertEquals("invalid amount of endpoint mappings found", 1, result.size());
DefaultMethodEndpointAdapter endpointAdapter = (DefaultMethodEndpointAdapter) result.values().iterator().next();
List<MethodArgumentResolver> argumentResolvers = endpointAdapter.getMethodArgumentResolvers();
assertTrue("No argumentResolvers created", !argumentResolvers.isEmpty());
assertContainsInstanceOf(argumentResolvers, MessageContextMethodArgumentResolver.class);
assertContainsInstanceOf(argumentResolvers, XPathParamMethodArgumentResolver.class);
assertContainsInstanceOf(argumentResolvers, SoapMethodArgumentResolver.class);
assertContainsInstanceOf(argumentResolvers, SoapHeaderElementMethodArgumentResolver.class);
assertContainsInstanceOf(argumentResolvers, DomPayloadMethodProcessor.class);
assertContainsInstanceOf(argumentResolvers, SourcePayloadMethodProcessor.class);
assertContainsInstanceOf(argumentResolvers, Dom4jPayloadMethodProcessor.class);
assertContainsInstanceOf(argumentResolvers, XmlRootElementPayloadMethodProcessor.class);
assertContainsInstanceOf(argumentResolvers, JaxbElementPayloadMethodProcessor.class);
assertContainsInstanceOf(argumentResolvers, JDomPayloadMethodProcessor.class);
assertContainsInstanceOf(argumentResolvers, StaxPayloadMethodArgumentResolver.class);
assertContainsInstanceOf(argumentResolvers, XomPayloadMethodProcessor.class);
List<MethodReturnValueHandler> returnValueHandlers = endpointAdapter.getMethodReturnValueHandlers();
assertTrue("No returnValueHandlers created", !returnValueHandlers.isEmpty());
assertContainsInstanceOf(returnValueHandlers, DomPayloadMethodProcessor.class);
assertContainsInstanceOf(returnValueHandlers, SourcePayloadMethodProcessor.class);
assertContainsInstanceOf(returnValueHandlers, Dom4jPayloadMethodProcessor.class);
assertContainsInstanceOf(returnValueHandlers, XmlRootElementPayloadMethodProcessor.class);