@Test
public void testLerp() {

  final Vector2 vec1 = new Vector2(8, 3);
  final Vector2 vec2 = new Vector2(2, 1);
  assertEquals(new Vector2(5, 2), vec1.lerp(vec2, 0.5, null));
  assertEquals(new Vector2(5, 2), vec1.lerp(vec2, 0.5, new Vector2()));
  assertEquals(new Vector2(5, 2), Vector2.lerp(vec1, vec2, 0.5, null));
  assertEquals(new Vector2(5, 2), Vector2.lerp(vec1, vec2, 0.5, new Vector2()));
  vec1.set(14, 5);
  vec1.lerpLocal(vec2, 0.25);
  assertEquals(new Vector2(11, 4), vec1);
  vec1.set(15, 7);
  final Vector2 vec3 = new Vector2(-1, -1);
  vec3.lerpLocal(vec1, vec2, 0.5);
  assertEquals(new Vector2(8.5, 4.0), vec3);
}