protected void runTest() throws Throwable {
Document document = dbf.newDocumentBuilder().newDocument();
Attr attr = document.createAttributeNS(null, "attr");
attr.appendChild(document.createTextNode("foo"));
attr.appendChild(document.createTextNode("bar"));
Element element = document.createElementNS(null, "test");
element.setAttributeNodeNS(attr);
Element clonedElement = (Element)element.cloneNode(false);
Attr clonedAttr = clonedElement.getAttributeNodeNS(null, "attr");
NodeList children = clonedAttr.getChildNodes();
assertEquals(2, children.getLength());