assertEquals("Character Encoding", conn.getCharacterEncoding(), "ENC");
}
public void testSendFaultMessageWithCustomHandlers() throws Exception {
SoapFault fault = new SoapFault(SoapFault.FAULT_CODE_CLIENT, "Invalid message format", "http://example.org/someactor");
MarshallingOutHandler detail1 = new MarshallingOutHandler(new ErrorMessage("There were lots of elements in the message that I did not understand"));
MarshallingOutHandler detail2 = new MarshallingOutHandler(new ErrorType("Severe"));
fault.addDetailWriter(detail1);
fault.addDetailWriter(detail2);
m_OutInProcessor.sendFaultMessage(fault, StubbedChannel.getOutConnection());