@Test
    public void testPhantomTriangles() {
        JmeSystem.setSystemDelegate(new MockJmeSystemDelegate());
        assetManager = new DesktopAssetManager();
        assetManager.registerLocator(null, ClasspathLocator.class);
        assetManager.registerLoader(J3MLoader.class, "j3m", "j3md");
        rootNode = new Node();

        createRedSquare();

        rootNode.updateLogicalState(0.01f);
        rootNode.updateGeometricState();
        /*
         * ray in the -Z direction, starting from (0.5, 0.6, 10)
         */
        Ray ray1 = new Ray(/* origin */new Vector3f(0.5f, 0.6f, 10f),
                /* direction */ new Vector3f(0f, 0f, -1f));
        castRay(ray1, 1);
        /*
         * ray in the -Z direction, starting from (0.5, 3, 10)
         */
        Ray ray0 = new Ray(/* origin */new Vector3f(0.5f, 3f, 10f),
                /* direction */ new Vector3f(0f, 0f, -1f));
        castRay(ray0, 0);
    }
Attach a red square in the XY plane with its lower left corner at (0, 0,
0). It is composed of 2 triangles.
jme3-core/src/test/java/com/jme3/collision/CollideIgnoreTransformTest.java