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

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

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

        Assert.assertFalse(bb1.isSimilar(bb2, 0.09999f));
        Assert.assertTrue(bb1.isSimilar(bb2, 0.10001f));

        Assert.assertFalse(bb3.isSimilar(bb4, 0.09999f));
        Assert.assertTrue(bb3.isSimilar(bb4, 0.10001f));

        Assert.assertTrue(bb5.isSimilar(bb6, 0f)); // check planes are ignored
    }
Verify that isSimilar() behaves as expected.
jme3-core/src/test/java/com/jme3/bounding/TestBoundingBox.java