@Test
    public void testSaturate() {
        assertEquals(0.0f, FastMath.saturate(-2.0f), 0.0f);
        assertEquals(1.0f, FastMath.saturate(1.0f), 0.0f);
        assertEquals(1.0f, FastMath.saturate(7.5f), 0.0f);
        assertEquals(0.0f, FastMath.saturate(0.0f), 0.0f);
        assertEquals(0.5f, FastMath.saturate(0.5f), 0.0f);
        assertEquals(0.75f, FastMath.saturate(0.75f), 0.0f);
    }
Verifies that algorithms in {@link FastMath} are working correctly.

@author Kirill Vainer
jme3-core/src/test/java/com/jme3/math/FastMathTest.java