assertEquals("one node should be selected", set(thirdChild), set(c.getSelecteds()));
}
public void test_Controller_selectBranch_Node_branchRoot() {
map = c.newMap();
final Node child1 = map.getRoot().createChild("child 1");
final Node child2 = map.getRoot().createChild("child 2");
final Node grandchild1 = child1.createChild("child 1.1");
final Node grandchild2 = child1.createChild("child 1.2");
final Node grandGrandChild = child1.createChild("child 1.1.1");
c.selectBranch(child1);
assertEquals("all node of the branch should be selected",
set(child1, grandchild1, grandchild2, grandGrandChild), set(c.getSelecteds()));
c.selectBranch(child2);
assertEquals("one node should be selected", set(child2), set(c.getSelecteds()));