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
// that's why i test the parent of the parent
// TODO 050. 032. the test will need to be fixed then
assertTrue(elements3d.contains(tree.getTree3D().getBranchGroup().getParent().getParent()));
assertTrue(elements3d.contains(treeLeaf.getTreeLeaf3D().getBranchGroup()));
}