@Test
public void testNormalize() {

  final Quaternion quat = new Quaternion(0, 1, 2, 3);
  final Quaternion quat2 = quat.normalize(null);
  assertEquals(quat2, quat.normalizeLocal());
  assertTrue(Math.abs(1 - quat.magnitude()) <= MathUtils.EPSILON);
  assertTrue(Math.abs(1 - quat2.magnitude()) <= MathUtils.EPSILON);
}