BasicTreeBranch3D branch3D = new BasicTreeBranch3D(mockUniverse3D, branch3DState, mockBranch);
CompilerHelper.compile(branch3D.getGroup());
assertEquals(nbParts, branch3D.getBranchParts().size());
List<TreeBranchPart> parts = mockBranch.getParts();
assertEquals(parts.get(parts.size() - 1).getBranchPart3D().getEndPoint(), branch3D.getEndPoint());
Node firstChild = branch3D.getGroup().getChild(0);
assertTrue(firstChild instanceof BranchGroup);
BranchGroup branchGroup = (BranchGroup) firstChild;
int nbPartsFound = 0;
Structure3DHelper.assertExactlyOneTransformGroup(branchGroup);
TransformGroup firstTransformGroup = (TransformGroup) branchGroup.getChild(0);