@Test
    public void testEquals() {
        BoundingBox bb1 = new BoundingBox(new Vector3f(3f, 4f, 5f), 0f, 1f, 2f);
        BoundingBox bb2
                = new BoundingBox(new Vector3f(3f, 4f, 5f), -0f, 1f, 2f);

        BoundingBox bb3 = new BoundingBox(new Vector3f(3f, 0f, 2f), 9f, 8f, 7f);
        BoundingBox bb4
                = new BoundingBox(new Vector3f(3f, -0f, 2f), 9f, 8f, 7f);

        BoundingBox bb5 = new BoundingBox(new Vector3f(4f, 5f, 6f), 9f, 8f, 7f);
        BoundingBox bb6 = (BoundingBox) bb5.clone();
        bb6.setCheckPlane(1);

        // Clones are equal to their base instances:
        Assert.assertEquals(bb1, bb1.clone());
        Assert.assertEquals(bb2, bb2.clone());
        Assert.assertEquals(bb3, bb3.clone());
        Assert.assertEquals(bb4, bb4.clone());
        Assert.assertEquals(bb5, bb5.clone());
        Assert.assertEquals(bb6, bb6.clone());

        Assert.assertNotEquals(bb1, bb2); // because their extents differ
        Assert.assertNotEquals(bb3, bb4); // because their centers differ
        Assert.assertEquals(bb5, bb6); // because check planes are ignored
    }
Verify that equals() behaves as expected.
jme3-core/src/test/java/com/jme3/bounding/TestBoundingBox.java