}
public void testChildDetachment() {
OMNamespace testNamespace2 = factory.createOMNamespace("ftp://anotherTest.ws.org", "ws");
secondElement.detach();
assertTrue("OMElement children detachment has not worked properly",
!secondElement.equals(firstElement.getFirstElement()));
assertNull("First Element should not contain elements after detaching. ",
firstElement.getFirstElement());
assertNull("First Element should not contain elements after detaching. ",
firstElement.getFirstOMChild());
assertNull(secondElement.findNamespace(testNamespace2.getNamespaceURI(),
testNamespace2.getPrefix()));
firstElement.addChild(secondElement);
factory.createOMText(firstElement, "Some Sample Text");
assertTrue("First added child must be the first child",