### Question:
AttackerConfig { @Override public boolean equals(Object object) { if (this == object) { return true; } if (object == null || object.getClass() != getClass()) { return false; } final AttackerConfig other = (AttackerConfig) object; return delay == other.delay && distanceMin == other.distanceMin && distanceMax == other.distanceMax && damagesMin == other.damagesMin && damagesMax == other.damagesMax; } AttackerConfig(int delay, int distanceMin, int distanceMax, int damagesMin, int damagesMax); static AttackerConfig imports(Configurer configurer); static AttackerConfig imports(Xml root); static Xml exports(AttackerConfig config); int getDelay(); Range getDistance(); Range getDamages(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString(); static final String NODE_ATTACKER; static final String ATT_DELAY; static final String ATT_DISTANCE_MIN; static final String ATT_DISTANCE_MAX; static final String ATT_DAMAGES_MIN; static final String ATT_DAMAGES_MAX; }### Answer:
@Test void testEquals() { final AttackerConfig config = new AttackerConfig(1, 2, 3, 4, 5); assertEquals(config, config); assertEquals(config, new AttackerConfig(1, 2, 3, 4, 5)); assertNotEquals(config, null); assertNotEquals(config, new Object()); assertNotEquals(config, new AttackerConfig(0, 2, 3, 4, 5)); assertNotEquals(config, new AttackerConfig(1, 0, 3, 4, 5)); assertNotEquals(config, new AttackerConfig(1, 2, 0, 4, 5)); assertNotEquals(config, new AttackerConfig(1, 2, 3, 0, 5)); assertNotEquals(config, new AttackerConfig(1, 2, 3, 4, 0)); }