}
}
@Test
public void testDetectStrategies() throws Exception {
StaticApplicationContext applicationContext = new StaticApplicationContext();
applicationContext.registerSingleton("mapping", PayloadRootQNameEndpointMapping.class);
applicationContext.registerSingleton("adapter", PayloadEndpointAdapter.class);
applicationContext.registerSingleton("resolver", SimpleSoapExceptionResolver.class);
dispatcher.setApplicationContext(applicationContext);
Assert.assertEquals("Invalid amount of mappings detected", 1, dispatcher.getEndpointMappings().size());
Assert.assertTrue("Invalid mappings detected",
dispatcher.getEndpointMappings().get(0) instanceof PayloadRootQNameEndpointMapping);
Assert.assertEquals("Invalid amount of adapters detected", 1, dispatcher.getEndpointAdapters().size());