@Test
    public void testBoxBoxCollision() {
        BoundingBox box1 = new BoundingBox(Vector3f.ZERO, 1, 1, 1);
        BoundingBox box2 = new BoundingBox(Vector3f.ZERO, 1, 1, 1);
        checkCollision(box1, box2, 1);
        
        // Put it at the very edge - should still intersect.
        box2.setCenter(new Vector3f(2f, 0f, 0f));
        checkCollision(box1, box2, 1);
        
        // Put it a wee bit farther - no intersection expected
        box2.setCenter(new Vector3f(2f + FastMath.ZERO_TOLERANCE, 0, 0));
        checkCollision(box1, box2, 0);
        
        // Check the corners.
        box2.setCenter(new Vector3f(2f, 2f, 2f));
        checkCollision(box1, box2, 1);
        
        box2.setCenter(new Vector3f(2f, 2f, 2f + FastMath.ZERO_TOLERANCE));
        checkCollision(box1, box2, 0);
    }
Tests collision detection between bounding volumes.

@author Kirill Vainer
jme3-core/src/test/java/com/jme3/collision/BoundingCollisionTest.java