(SOAPEnvelope) OMTestUtils.getOMBuilder(
new File(dir, TestConstants.SOAPMESSAGE))
.getDocumentElement();
SOAPBody body = soapEnvelope.getBody();
OMElement firstClonedBodyElement = new StAXOMBuilder(body.getXMLStreamReader()).getDocumentElement();
OMElement secondClonedBodyElement = new StAXOMBuilder(body.getXMLStreamReader()).getDocumentElement();
// first check whether both have the same information
assertXMLEqual(newDocument(body.toString()), newDocument(firstClonedBodyElement.toString()));
assertXMLEqual(newDocument(body.toString()), newDocument(secondClonedBodyElement.toString()));
assertXMLEqual(newDocument(firstClonedBodyElement.toString()), newDocument(secondClonedBodyElement.toString()));