@Test
public void testNegate() {

  final Vector2 vec1 = new Vector2(2, 1);
  final Vector2 vec2 = vec1.negate(null);
  assertEquals(new Vector2(-2, -1), vec2);
  vec1.negateLocal();
  assertEquals(vec2, vec1);
}