WsConfigurationSupport { @Bean public DefaultMethodEndpointAdapter defaultMethodEndpointAdapter() { List<MethodArgumentResolver> argumentResolvers = new ArrayList<MethodArgumentResolver>(); addArgumentResolvers(argumentResolvers); List<MethodReturnValueHandler> returnValueHandlers = new ArrayList<MethodReturnValueHandler>(); addReturnValueHandlers(returnValueHandlers); DefaultMethodEndpointAdapter adapter = new DefaultMethodEndpointAdapter(); adapter.setCustomMethodArgumentResolvers(argumentResolvers); adapter.setCustomMethodReturnValueHandlers(returnValueHandlers); return adapter; }  @Bean PayloadRootAnnotationMethodEndpointMapping payloadRootAnnotationMethodEndpointMapping(); @Bean SoapActionAnnotationMethodEndpointMapping soapActionAnnotationMethodEndpointMapping(); @Bean AnnotationActionEndpointMapping annotationActionEndpointMapping(); @Bean DefaultMethodEndpointAdapter defaultMethodEndpointAdapter(); @Bean SoapFaultAnnotationExceptionResolver soapFaultAnnotationExceptionResolver(); @Bean SimpleSoapExceptionResolver simpleSoapExceptionResolver();  }
@Test public void defaultMethodEndpointAdapter() { DefaultMethodEndpointAdapter endpointAdapter = this.applicationContext.getBean(DefaultMethodEndpointAdapter.class); assertNotNull(endpointAdapter); assertTrue(endpointAdapter instanceof MyDefaultMethodEndpointAdapter); }