@Test
    public void testEquals() {
        BoundingSphere bs1 = new BoundingSphere(0f, new Vector3f(3f, 4f, 5f));
        BoundingSphere bs2 = new BoundingSphere(-0f, new Vector3f(3f, 4f, 5f));

        BoundingSphere bs3 = new BoundingSphere(1f, new Vector3f(3f, 0f, 2f));
        BoundingSphere bs4 = new BoundingSphere(1f, new Vector3f(3f, -0f, 2f));

        BoundingSphere bs5 = new BoundingSphere(2f, new Vector3f(4f, 5f, 6f));
        BoundingSphere bs6 = (BoundingSphere) bs5.clone();
        bs6.setCheckPlane(1);

        // Clones are equal to their base instances:
        Assert.assertEquals(bs1, bs1.clone());
        Assert.assertEquals(bs2, bs2.clone());
        Assert.assertEquals(bs3, bs3.clone());
        Assert.assertEquals(bs4, bs4.clone());
        Assert.assertEquals(bs5, bs5.clone());
        Assert.assertEquals(bs6, bs6.clone());

        Assert.assertNotEquals(bs1, bs2); // because their radii differ
        Assert.assertNotEquals(bs3, bs4); // because their centers differ
        Assert.assertEquals(bs5, bs6); // because check planes are ignored
    }
Verify that equals() behaves as expected.
jme3-core/src/test/java/com/jme3/bounding/TestBoundingSphere.java