public String extractMappingKey(Message request) {
return "foo";
}
});
SimpleMappingStrategy mappingStrategy = new SimpleMappingStrategy();
mappingStrategy.setAdapterMappings(Collections.<String, EndpointAdapter>singletonMap("foo", new EmptyResponseEndpointAdapter()));
endpointAdapter.setMappingStrategy(mappingStrategy);
Message response = endpointAdapter.handleMessage(
new DefaultMessage("<TestMessage>Hello World!</TestMessage>"));