SoapFault extends SoapMessage { @Override public String toString() { StringBuilder builder = new StringBuilder(); QName faultCodeQName = getFaultCodeQName(); if (StringUtils.hasLength(faultCodeQName.getNamespaceURI()) && StringUtils.hasLength(faultCodeQName.getPrefix())) { builder.append(decorate(decorate(faultCodeQName.getNamespaceURI()) + faultCodeQName.getPrefix() + ":" + faultCodeQName.getLocalPart())); } else if (StringUtils.hasLength(faultCodeQName.getNamespaceURI())) { builder.append(decorate(decorate(faultCodeQName.getNamespaceURI()) + faultCodeQName.getLocalPart())); } else { builder.append(decorate(faultCodeQName.getLocalPart())); } if (StringUtils.hasText(getFaultString())) { builder.append(decorate(getFaultString())); if (getLocale() != null) { builder.append(decorate(getLocale().toString())); } if (faultActor != null) { builder.append(decorate(faultActor)); } } return super.toString() + String.format("[fault: %s]", builder.toString()); } SoapFault();  SoapFault(Message message);  SoapFault(Object payload); QName getFaultCodeQName(); SoapFault faultCode(String faultCode); SoapFault faultString(String faultString); SoapFault faultActor(String faultActor); SoapFault faultDetails(List<String> faultDetails); SoapFault addFaultDetail(String faultDetail); SoapFault locale(Locale locale); SoapFault locale(String locale); String getFaultActor(); String getFaultCode(); String getFaultString(); List<String> getFaultDetails(); Locale getLocale(); static SoapFault from(org.springframework.ws.soap.SoapFault fault); @Override String toString();  }
@Test public void testToString() { SoapFault fault = new SoapFault(); fault.faultCode("TEC-1000"); Assert.assertTrue(fault.toString().endsWith("[fault: {TEC-1000}]")); fault.faultString("Internal server error"); Assert.assertTrue(fault.toString().endsWith("[fault: {TEC-1000}{Internal server error}{en}]")); fault.faultCode("{http: Assert.assertTrue(fault.toString().endsWith("[fault: {{http: fault.locale("DE"); Assert.assertTrue(fault.toString().endsWith("[fault: {{http: fault.faultActor("Actor"); Assert.assertTrue(fault.toString().endsWith("[fault: {{http: }