### Question:
Tree { public Node getRoot() { return root; } Tree();  Tree(String text); void createTree(List<Node> nodes); void middlePrint(Node tnode); @Transient List<Node> getLeafList(); String getHtml(Node tnode); boolean checkExist(Node tnode, String text); Node getRoot(); void setRoot(Node root);  }### Answer:
@Test public void testConstructor() { final Tree tree = new Tree("foo"); assertEquals(101605, tree.getRoot().hashCode()); assertEquals(-1, tree.getRoot().getIndex()); assertEquals(-1, tree.getRoot().getPid()); assertEquals(0, tree.getRoot().getNid()); assertEquals("foo", tree.getRoot().getFilename()); assertNull(((Node)tree.getRoot()).getChildren()); assertNull(tree.getRoot().getFilesize()); }