@Test
    public void testIsValidVector() {
        assertFalse(Vector3f.isValidVector(new Vector3f(Float.NaN, 2.1f, 3.0f)));
        assertFalse(Vector3f.isValidVector(new Vector3f(Float.POSITIVE_INFINITY, 1.5f, 1.9f)));
        assertFalse(Vector3f.isValidVector(new Vector3f(Float.NEGATIVE_INFINITY, 2.5f, 8.2f)));
        assertFalse(Vector3f.isValidVector(null));

        assertTrue(Vector3f.isValidVector(new Vector3f()));
        assertTrue(Vector3f.isValidVector(new Vector3f(1.5f, 5.7f, 8.2f)));
    }
Verify that distance() doesn't always overflow when distanceSquared >
Float.MAX_VALUE .
jme3-core/src/test/java/com/jme3/math/Vector3fTest.java