@Test
public void testEquals() {

  // couple of equals validity tests
  final Triangle tri1 = new Triangle();
  assertEquals(tri1, tri1);
  assertFalse(tri1.equals(null));
  // throw in a couple pool accesses for coverage
  final Triangle tri2 = Triangle.fetchTempInstance();
  tri2.set(tri1);
  assertEquals(tri1, tri2);
  assertNotSame(tri1, tri2);
  Triangle.releaseTempInstance(tri2);
  // cover more of equals
  assertTrue(tri1.equals(new Triangle(Vector3.ZERO, Vector3.ZERO, Vector3.ZERO)));
  assertFalse(tri1.equals(new Triangle(Vector3.ZERO, Vector3.ZERO, Vector3.UNIT_X)));
  assertFalse(tri1.equals(new Triangle(Vector3.ZERO, Vector3.UNIT_X, Vector3.UNIT_X)));
  assertFalse(tri1.equals(new Triangle(Vector3.ZERO, Vector3.UNIT_X, Vector3.ZERO)));
  assertFalse(tri1.equals(new Triangle(Vector3.UNIT_X, Vector3.ZERO, Vector3.ZERO)));
  assertFalse(tri1.equals(new Triangle(Vector3.UNIT_X, Vector3.ZERO, Vector3.UNIT_X)));
  assertFalse(tri1.equals(new Triangle(Vector3.UNIT_X, Vector3.UNIT_X, Vector3.ZERO)));
  assertFalse(tri1.equals(new Triangle(Vector3.UNIT_X, Vector3.UNIT_X, Vector3.UNIT_X)));
}