Parser parser = new Parser(new Lexer(new Page(html)));
NodeList tree = parser.parse(null);
NodeList cloneTree = deepClone(tree);
assertEquals(html, cloneTree.toHtml());
assertEquals(tree.toString(), cloneTree.toString());
assertFalse(tree.elementAt(0).getChildren().elementAt(1) == cloneTree.elementAt(0).getChildren().elementAt(1));
assertFalse(tree.elementAt(0).getChildren().elementAt(1).getParent() == cloneTree.elementAt(0).getChildren().elementAt(1).getParent());
}