public void testQNames() throws Exception {
String ATTR = "attr";
String NSURI = "http://ns1";
OMFactory fac = new OMDOMFactory();
OMNamespace ns = new NamespaceImpl(NSURI);
OMAttribute attr = fac.createOMAttribute(ATTR, ns, "value");
QName qname = attr.getQName();
assertEquals("Wrong namespace", NSURI, qname.getNamespaceURI());
assertEquals("Wrong localPart", ATTR, qname.getLocalPart());
assertEquals("Wrong prefix", "", qname.getPrefix());
}