### Question:
Damages { @Override public boolean equals(Object object) { if (this == object) { return true; } if (object == null || object.getClass() != getClass()) { return false; } final Damages other = (Damages) object; return min == other.min && max == other.max; } Damages();  Damages(int min, int max); void setMin(int min); void setMax(int max); void setDamages(int min, int max); void setDamages(Range range); int getRandom(); int getLast(); int getMin(); int getMax(); Range getDamages(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString();  }### Answer:
@Test void testEquals() { final Damages damages = new Damages(1, 2); assertEquals(damages, damages); assertEquals(damages, new Damages(1, 2)); assertNotEquals(damages, null); assertNotEquals(damages, new Object()); assertNotEquals(damages, new Damages(2, 2)); assertNotEquals(damages, new Damages(1, 1)); }