assertEquals("Namespace having same information, declared in the same context, should share" +
" the same namespace object",firstElement.getNamespace(), secondElement.getNamespace());
assertEquals("OMElement children addition has not worked properly", secondElement, firstElement.getFirstElement());
OMNamespace testNamespace2 = factory.createOMNamespace("ftp://anotherTest.axis2.org", "axis2");
firstElement.declareNamespace(testNamespace2);
OMNamespace inheritedSecondNamespace = secondElement.findNamespace(testNamespace2.getName(),
testNamespace2.getPrefix());
assertNotNull("Children should inherit namespaces declared in parent", inheritedSecondNamespace);
assertEquals("inherited namespace uri should be equal", inheritedSecondNamespace.getName(), testNamespace2.getName());
assertEquals("inherited namespace prefix should be equal", inheritedSecondNamespace.getPrefix(), testNamespace2.getPrefix());
}