public class OMElementCloneTest extends XMLTestCase {
File dir = new File(TestConstants.TEST_RESOURCES, TestConstants.SOAP_DIR);
public void testElementCloningWithoutUsingOMElementMethod() throws Exception {
SOAPEnvelope soapEnvelope =
(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