@Test
    public void testNoCollision() {
        Ray r = new Ray(new Vector3f(0f, 40f, 0f), Vector3f.UNIT_Y.negate());
        r.setLimit(0.1f);
        CollisionResults cr = new CollisionResults();
        long l = System.nanoTime();
        int cw = quad.collideWith(r, cr);
        System.out.println((System.nanoTime() - l) + " ns");

        Assert.assertEquals(0, cw);
        Assert.assertEquals(0, cr.size());
        Assert.assertEquals(null, cr.getClosestCollision());
        Assert.assertEquals(null, cr.getFarthestCollision());
    }
Due to a previous bug, when no collision should happen, the CollisionResults struct was still populated, leading
to an incoherency of data and ghost collisions when passing a non-empty CR.
jme3-terrain/src/test/java/com/jme3/terrain/collision/TerrainCollisionTest.java