protected void runTest() throws Throwable {
OMFactory factory = metaFactory.getOMFactory();
OMNamespace ns1 = factory.createOMNamespace("urn:ns1", "p");
OMNamespace ns2 = factory.createOMNamespace("urn:ns2", "p");
OMElement element1 = factory.createOMElement(new QName("a"));
element1.declareNamespace(ns1);
OMElement element2 = factory.createOMElement(new QName("b"), element1);
element2.declareNamespace(ns2);
OMElement element3 = factory.createOMElement(new QName("c"), element2);
OMAttribute att = factory.createOMAttribute("attr", ns1, "test");
element3.addAttribute(att);