OMNamespace a = factory.createOMNamespace(NS_A, "a");
OMNamespace b = factory.createOMNamespace(NS_B, "b");
OMElement documentElement = factory.createOMElement("Document", a);
factory.createOMElement("sample", a, documentElement);
factory.createOMElement("sample", b, documentElement);
// Test for fully qualified names
QName qName = new QName(NS_A, "sample");
assertTrue(getChildrenCount(documentElement.getChildrenWithName(qName)) == 1);