@Test
public void testEquals() {

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