class Vector3f implements Savable, Cloneable, java.io.Serializable {

    public Vector3f negateLocal() {
        x = -x;
        y = -y;
        z = -z;
        return this;
    }

}

class Vector3fTest {

    @Rule public ExpectedException thrown;

    @Test
    public void testNegateLocal() {

        final Vector3f target = new Vector3f(-4.5f, Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY);
        final Vector3f retval = target.negateLocal();

        assertEquals(target, retval);

        assertNotNull(retval);
        assertEquals(4.5f, retval.x, 0.0f);
        assertEquals(Float.NEGATIVE_INFINITY, retval.y, 0.0f);
        assertEquals(Float.POSITIVE_INFINITY, retval.z, 0.0f);
    }

}