assertTrue(root.getCapability(Group.ALLOW_CHILDREN_EXTEND));
}
public void testInitFromUniverse() {
BasicUniverse3D universe3D = new BasicUniverse3D(new Universe3DState(), new MockUniverse());
Universe universe = new MockUniverse();
MockTreeLeaf treeLeaf = new MockTreeLeaf();
treeLeaf.setState(CoreDataCreatorForTests.createSpecificTreeLeafState());
universe.addFallenLeaf(treeLeaf);
MockTree tree = new MockTree();
tree.setState(CoreDataCreatorForTests.createSpecificTreeState());
universe.addTree(tree);
universe3D.initFromUniverse(universe);
assertTrue(universe3D.getElements3D().contains(universe.getEnvironment().getEnvironment3D().getGroup()));
assertTrue(universe3D.getElements3D().contains(universe.getPhysics().getPhysics3D().getGroup()));
Set<Node> elements3d = universe3D.getElements3D();
assertNotNull(elements3d);
assertEquals(4, elements3d.size());
// the 3D node is added to a transform group, itself added to a branch group