assertTrue("The payload was not present in the output",
output.indexOf(payload1) > 0);
assertTrue("OMSourcedElement is not expanded. This is unexpected", child.isExpanded());
// Reset the tree
child.detach();
isds1 = new InputStreamDataSource(
new ByteArrayInputStream(payload1.getBytes(encoding)),
encoding);
omse = factory.createOMElement(isds1, localName, ns);
parent.addChild(omse);