DefaultTreeForTreeLayout extends
		AbstractTreeForTreeLayout<TreeNode> { public void addChildren(TreeNode parentNode, TreeNode... nodes) { for (TreeNode node : nodes) { addChild(parentNode, node); } } DefaultTreeForTreeLayout(TreeNode root); @Override TreeNode getParent(TreeNode node); @Override List<TreeNode> getChildrenList(TreeNode node); boolean hasNode(TreeNode node); void addChild(TreeNode parentNode, TreeNode node); void addChildren(TreeNode parentNode, TreeNode... nodes);  }
@Test public void testAddChildren() throws Exception { DefaultTreeForTreeLayout<String> tree = new DefaultTreeForTreeLayout<String>( "ROOT"); tree.addChildren("ROOT", "N1", "N2"); tree.addChildren("N1", "N1.1"); assertEquals("N1", tree.getChildrenList("ROOT").get(0)); assertEquals("N1.1", tree.getChildrenList("N1").get(0)); assertEquals("N2", tree.getChildrenList("ROOT").get(1)); }