@Test
    public void testMultiCollision() {
        // Ray parameters obtained by using TerrainTestCollision (manual inspection of a feasible ray and commenting out setLocalScale(2)
        Ray r = new Ray(new Vector3f(-38.689114f, 35.622643f, -40.222355f), new Vector3f(0.68958646f, 0.0980845f, 0.7175304f));

        CollisionResults cr = new CollisionResults();
        long l = System.nanoTime();
        int cw = quad.collideWith(r, cr);
        System.out.println((System.nanoTime() - l) + " ns");
        Assert.assertEquals(6, cw);
        Assert.assertEquals(6, cr.size());

    }
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