SoapFaultHandler faultHandler = new SoapFaultHandler(true);
try {
throw new IllegalStateException("Dummy Exception");
} catch (Throwable t) {
faultHandler.handleException(t, m_processor, StubbedChannel.getOutConnection());
}
String expected = SoapMaker.envelope(SoapMaker.body("<SOAP:Fault>\n" + "<faultcode>SOAP:Server</faultcode>\n"
+ "<faultstring>Dummy Exception</faultstring>\n" + "<detail>\n"
+ "<Exception>java.lang.IllegalStateException: Dummy Exception\n\tat" + "</Exception>\n" + "</detail>\n"
+ "</SOAP:Fault>\n"));