result.reset();
result.expectedMessageCount(1);
HelloService client = getCXFClient();
client.echo("hello world");
assertMockEndpointsSatisfied();
Map context = (Map)result.assertExchangeReceived(0).getIn().getHeaders().get("ResponseContext");
Map protocalHeaders = (Map) context.get("org.apache.cxf.message.Message.PROTOCOL_HEADERS");
assertEquals("Should get the content type", protocalHeaders.get("content-type").toString(), "[text/xml; charset=utf-8]");
assertEquals("Should get the response code ", context.get("org.apache.cxf.message.Message.RESPONSE_CODE"), 200);
assertEquals("Should get the content type", result.assertExchangeReceived(0).getIn().getHeaders().get("content-type"), "text/xml; charset=utf-8");
}