XMLFaultReason reason = xmlFault.getReason();
assertTrue(reason != null);
assertTrue(reason.getText().equals("Custom Fault"));
XMLFaultCode code = xmlFault.getCode();
assertTrue(code != null);
QName codeQName = code.toQName(SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE);
assertTrue("Expected QName = " + CUSTOM + " but received = " + codeQName, codeQName.equals(CUSTOM));
}