SOAPMessage sm = smc.getMessage();
assertTrue("The returned SOAPMessage was null", sm != null);
assertTrue("The SOAPMessage did not contain a SOAPBody", sm.getSOAPBody() != null);
assertTrue("The SOAPBody did not contain a SOAPFault", sm.getSOAPBody().getFault() != null);
LogicalMessageContext lmc = MessageContextFactory.createLogicalMessageContext(mc);
LogicalMessage lm = lmc.getMessage();
Source payload = lm.getPayload();
assertTrue("The returned payload (Source) was null", payload != null);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
StreamResult result = new StreamResult(baos);