void castRay() {
        CollisionResults results = new CollisionResults();
        rootNode.collideWith(ray, results);
        int numResults = results.size();
        for (int resultI = 0; resultI < numResults; resultI++) {
            CollisionResult result = results.getCollision(resultI);
            Geometry geometry = result.getGeometry();
            String name = geometry.getName();
            if (name.equals("white lines")) {
                assert false; // phantom triangle
            }
        }
    }
Cast a ray at the geometries and report all collisions.
jme3-core/src/test/java/com/jme3/scene/PhantomTrianglesTest.java