* Uses the example SOAP fault provided the WS-I R1004 requirement.
*
* @throws Exception
*/
public void testSendFaultMessageWithCustomFaultCode() throws Exception {
QName faultCode = new QName("http://example.org/faultcodes", "c", "ProcessingError");
SoapFault fault = new SoapFault(faultCode, "An error occured while processing the message", null);
m_OutInProcessor.sendFaultMessage(fault, StubbedChannel.getOutConnection());
String expected = SoapMaker.envelope(SoapMaker.body(
"<soap:Fault xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'\n"