}
@Test
public void testAddFaultWithDetailResult() throws Exception {
SoapFault fault = soapBody.addServerOrReceiverFault("faultString", Locale.ENGLISH);
SoapFaultDetail detail = fault.addFaultDetail();
transformer.transform(new StringSource("<detailContents xmlns='namespace'/>"), detail.getResult());
transformer.transform(new StringSource("<detailContents xmlns='namespace'/>"), detail.getResult());
StringResult result = new StringResult();
transformer.transform(fault.getSource(), result);
assertXMLEqual("Invalid source for body",
"<soapenv:Fault xmlns:soapenv='http://www.w3.org/2003/05/soap-envelope'>" +
"<soapenv:Code><soapenv:Value>" + soapBody.getName().getPrefix() + ":Receiver</soapenv:Value>" +