}
// Test case(s)
// -------------------------------------------------------------------------
public void testBug1148333() {
DOMDocumentFactory factory = (DOMDocumentFactory) DOMDocumentFactory
.getInstance();
DOMDocument doc = (DOMDocument) factory.createDocument();
Element el = doc.addElement("root");
el.addNamespace("pref2", "uri2");
DOMDocument clone = (DOMDocument) doc.cloneNode(true);