*
* @throws Exception
*/
public void testName3QualifiedPrefix() throws Exception {
OMFactory f = new OMLinkedListImplFactory();
// Create OMSE with a DUMMYPREFIX prefix even though the underlying element uses the default prefix
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"));