BasicTreeLeaf3D leaf3D = new BasicTreeLeaf3D(mockUniverse3D, leaf3DState, mockLeaf);
CompilerHelper.compile(leaf3D.getBranchGroup());
Shape3D leafShape3D = (Shape3D) ((TransformGroup) leaf3D.getBranchGroup().getChild(0)).getChild(0);
Color3f expectedColor = new Color3f(ColorConstants.brownYellow);
expectedColor.interpolate(ColorConstants.green, 0.8f);
ColorTestHelper.testColorFromMaterial(leafShape3D.getAppearance(), expectedColor, new Color3f(0.05f, 0.05f,
0.05f), new Color3f(0.15f, 0.15f, 0.15f));
// check the leaves are not culled (transparent) when seen from behind
assertEquals(PolygonAttributes.CULL_NONE, leafShape3D.getAppearance().getPolygonAttributes().getCullFace());