OMNamespace rootNS = new OMNamespaceImpl("http://sampleroot", "rootPrefix");
OMNamespace ns = new OMNamespaceImpl("http://DUMMYNS", "DUMMYPREFIX");
OMElement element =
new OMSourcedElementImpl("DUMMYNAME", ns, f, new TestDataSource(testDocument2));
OMElement root = f.createOMElement("root", rootNS);
root.addChild(element);
// Test getting the namespace, localpart and prefix. This should used not result in expansion
assertTrue(element.getLocalName().equals("DUMMYNAME"));
assertTrue(element.getNamespace().getNamespaceURI().equals("http://DUMMYNS"));
assertTrue(element.getNamespace().getPrefix().equals("DUMMYPREFIX"));