assertTrue("No subcode found", iterator.hasNext());
assertEquals("Invalid subcode", subcode1, iterator.next());
assertTrue("No subcode found", iterator.hasNext());
assertEquals("Invalid subcode", subcode2, iterator.next());
assertFalse("Subcode found", iterator.hasNext());
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>" +
"<soapenv:Subcode><soapenv:Value xmlns:spring-ws='http://www.springframework.org'>spring-ws:Subcode1</soapenv:Value>" +
"<soapenv:Subcode><soapenv:Value xmlns:spring-ws='http://www.springframework.org'>spring-ws:Subcode2</soapenv:Value>" +
"</soapenv:Subcode></soapenv:Subcode></soapenv:Code>" +
"<soapenv:Reason><soapenv:Text xml:lang='en'>faultString</soapenv:Text></soapenv:Reason>" +
"</soapenv:Fault>", result.toString());
}