Map<String, Object> responseHeaders = new HashMap<String, Object>();
responseHeaders.put("{http://www.consol.de/citrus}citrus:Operation", "sayHello");
final Message responseMessage = new DefaultMessage("<?xml version=\"1.0\" encoding=\"UTF-8\"?><TestResponse><Message>Hello World!</Message></TestResponse>", responseHeaders);
endpoint.setEndpointAdapter(new StaticEndpointAdapter() {
public Message handleMessageInternal(Message message) {
Assert.assertEquals(message.copyHeaders().size(), requestMessage.copyHeaders().size());
Assert.assertNotNull(message.getHeader(SoapMessageHeaders.SOAP_ACTION));
Assert.assertEquals(message.getHeader(SoapMessageHeaders.SOAP_ACTION), "sayHello");