assertEquals("Not the expected body content", envelope.toString().replace("utf", "UTF"),
new String(httpResponse.getByteArrayOutputStream().toByteArray()));
}
public void testCleanup() throws AxisFault {
TransportSender sender = getTransportSender();
MessageContext msgContext = new MessageContext();
HttpMethod httpMethod = new GetMethod();
msgContext.setProperty(HTTPConstants.HTTP_METHOD, httpMethod);
assertNotNull("HttpMethod can not be null",
msgContext.getProperty(HTTPConstants.HTTP_METHOD));
sender.cleanup(msgContext);
assertNull("HttpMethod should be null", msgContext.getProperty(HTTPConstants.HTTP_METHOD));
}