List<HTMLNode> children_ = root.getChildrenNode();
assertEquals(children_.size(), 2);
assertEquals(children.size(), children_.size());
//BODY.
NodePath path_ = NodePathParser.toPath(children.get(1));
assertNotNull(path_);
System.out.println("NODEPATH-CLASS: " + path_.getClass().getName());
System.out.println("PATH OF BODY: " + path_.toString());
HTMLNode bodyNode = NodePathUtil.lookFor(document.getRoot(), path_);
assertEquals(bodyNode, children.get(1));
String bodyPath = "html.body";
HTMLNode bodyNode1 = NodePathUtil.lookFor(document.getRoot(), NodePathParser.toPath(bodyPath));
assertNotNull(bodyNode1);
assertEquals(bodyNode1, bodyNode);
//Test Node.getChildren() and Node.getChildrenNode() methods.
List<HTMLNode> bodyChildren = bodyNode.getChildren();
List<HTMLNode> bodyChildren1 = bodyNode.getChildrenNode();
assertEquals(bodyChildren.size(), bodyChildren1.size());
assertEquals(bodyChildren.size(), 2);
assertEquals(bodyChildren1.size(), 2);
//TABLE
String pathStr = "html.body.table[0]";
NodePath path = NodePathParser.toPath(pathStr);
assertNotNull(path);
HTMLNode tableNode = NodePathUtil.lookFor(document.getRoot(), path);
assertNotNull(tableNode);
assertEquals(tableNode.getName(), Name.TABLE);
assertEquals(tableNode.getName().toString(), "TABLE");