### Question:
CollisionRange { @Override public boolean equals(Object object) { if (this == object) { return true; } if (object == null || object.getClass() != getClass()) { return false; } final CollisionRange other = (CollisionRange) object; final boolean sameRange = maxX == other.maxX && maxY == other.maxY && minX == other.minX && minY == other.minY; return sameRange && output == other.output; } CollisionRange(Axis output, int minX, int maxX, int minY, int maxY); Axis getOutput(); int getMinX(); int getMaxX(); int getMinY(); int getMaxY(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString();  }### Answer:
@Test void testEquals() { assertEquals(range, range); assertEquals(range, new CollisionRange(Axis.X, 0, 1, 2, 3)); assertNotEquals(range, null); assertNotEquals(range, new Object()); assertNotEquals(range, new CollisionRange(Axis.Y, 0, 1, 2, 3)); assertNotEquals(range, new CollisionRange(Axis.X, 1, 1, 2, 3)); assertNotEquals(range, new CollisionRange(Axis.X, 0, 2, 2, 3)); assertNotEquals(range, new CollisionRange(Axis.X, 0, 1, 3, 3)); assertNotEquals(range, new CollisionRange(Axis.X, 0, 1, 2, 4)); }