DefaultTreeForTreeLayout extends
		AbstractTreeForTreeLayout<TreeNode> { @Override public List<TreeNode> getChildrenList(TreeNode node) { List<TreeNode> result = childrenMap.get(node); return result == null ? getEmptyList() : result; } 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 testGetChildrenList() throws Exception { List<String> children = tree.getChildrenList(root); assertEquals(2, children.size()); assertEquals(n1, children.get(0)); assertEquals(n2, children.get(1)); }
@Test public void testGetChildrenList_leaf() throws Exception { List<String> children = tree.getChildrenList(n1); assertEquals(0, children.size()); }