@Test
public void testRotations() {
final Vector4 rotated = new Vector4();
final Vector4 expected = new Vector4();
final Matrix4 worker = new Matrix4();
expected.set(1, 1, 1, 1);
rotated.set(1, 1, 1, 1);
worker.setIdentity().applyRotationX(MathUtils.QUARTER_PI).applyPost(expected, expected);
worker.setIdentity().applyRotation(MathUtils.QUARTER_PI, 1, 0, 0).applyPost(rotated, rotated);
assertTrue(rotated.distance(expected) <= MathUtils.EPSILON);
expected.set(1, 1, 1, 1);
rotated.set(1, 1, 1, 1);
worker.setIdentity().applyRotationY(MathUtils.QUARTER_PI).applyPost(expected, expected);
worker.setIdentity().applyRotation(MathUtils.QUARTER_PI, 0, 1, 0).applyPost(rotated, rotated);
assertTrue(rotated.distance(expected) <= MathUtils.EPSILON);
expected.set(1, 1, 1, 1);
rotated.set(1, 1, 1, 1);
worker.setIdentity().applyRotationZ(MathUtils.QUARTER_PI).applyPost(expected, expected);
worker.setIdentity().applyRotation(MathUtils.QUARTER_PI, 0, 0, 1).applyPost(rotated, rotated);
assertTrue(rotated.distance(expected) <= MathUtils.EPSILON);
}