OMNamespace ns2 = factory.createOMNamespace(new String("urn:ns2"), "q");
OMElement root = factory.createOMElement("root", ns1);
root.addAttribute("attr", "value", ns2);
factory.createOMElement("child", ns2, root);
OMXMLStreamReaderConfiguration configuration = new OMXMLStreamReaderConfiguration();
configuration.setNamespaceURIInterning(true);
XMLStreamReader reader = root.getXMLStreamReader(true, configuration);
reader.nextTag();
assertInterned(reader.getNamespaceURI());
assertInterned(reader.getAttributeNamespace(0));
for (int i=0; i<reader.getNamespaceCount(); i++) {