public void testDualNamespaces1() throws Exception {
OMFactory factory = OMAbstractFactory.getOMFactory();
OMNamespace ns1 = factory.createOMNamespace("bar", "x");
OMNamespace ns2 = factory.createOMNamespace("bar", "y");
OMElement root = factory.createOMElement("root", ns1);
OMElement elt11 = factory.createOMElement("foo1", ns1);
OMElement elt12 = factory.createOMElement("foo2", ns1);
OMElement elt21 = factory.createOMElement("yuck", ns2);
OMElement elt22 = factory.createOMElement("yuck", ns2);
elt11.addChild(elt21);