soapFaultDetail.addDetailEntry(
soapFactory.createOMElement("DetailEntry1", omNamespace));
soapFaultDetail.addDetailEntry(
soapFactory.createOMElement("DetailEntry2", omNamespace));
StringWriter out = new StringWriter();
soapFaultDetail.serialize(out);
String msg = out.toString();
System.out.println(msg);
assertTrue(msg.indexOf("DetailEntry1") != -1);
assertTrue(msg.indexOf("DetailEntry2") != -1);
}