public void testToXOM() {
Document xomDoc = DOMConverter.convert(domDocument);
DocType doctype = xomDoc.getDocType();
Element root = xomDoc.getRootElement();
assertEquals("test", root.getQualifiedName());
assertEquals("test", root.getLocalName());
assertEquals("", root.getNamespaceURI());
assertTrue(doctype != null);
assertTrue(xomDoc.getChild(0) instanceof DocType);
assertTrue(xomDoc.getChild(4) instanceof nu.xom.Comment);
assertTrue(xomDoc.getChild(2) instanceof nu.xom.Comment);
assertEquals(" test ", xomDoc.getChild(2).getValue());
assertEquals("epilog", xomDoc.getChild(4).getValue());
assertTrue(
xomDoc.getChild(1) instanceof nu.xom.ProcessingInstruction);
assertEquals("test", doctype.getRootElementName());
assertNull(doctype.getPublicID());
assertNull(doctype.getSystemID());
}