}
}
public void testGetContentType() throws AxisFault {
HessianMessageFormatter formatter = new HessianMessageFormatter();
OMOutputFormat format = new OMOutputFormat();
String soapActionString = "soapAction";
HessianTestHelper testHelper = new HessianTestHelper();
MessageContext msgContext = testHelper.createAxis2MessageContext(null);
String contentType = formatter.getContentType(msgContext, format, soapActionString);
assertEquals(HessianConstants.HESSIAN_CONTENT_TYPE, contentType);
msgContext.setProperty(Constants.Configuration.CONTENT_TYPE,
HessianConstants.HESSIAN_CONTENT_TYPE);
format.setCharSetEncoding(HessianTestHelper.CHARSET_ENCODING);
contentType = formatter.getContentType(msgContext, format, soapActionString);
String expectedContentType = HessianConstants.HESSIAN_CONTENT_TYPE + "; charset="
+ HessianTestHelper.CHARSET_ENCODING;
assertEquals(expectedContentType, contentType);
}