### Question:
CollidableFramedConfig { @Override public boolean equals(Object object) { if (this == object) { return true; } if (object == null || object.getClass() != getClass()) { return false; } final CollidableFramedConfig other = (CollidableFramedConfig) object; return collisions.equals(other.collisions); } CollidableFramedConfig(Map<Integer, Collection<Collision>> collisions); static CollidableFramedConfig imports(Configurer configurer); static CollidableFramedConfig imports(Xml root); static void exports(Xml root, Map<Integer, Collection<Collision>> collisions); Collection<Collision> getCollision(Integer frame); Collection<Collision> getCollisions(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString(); static final String NODE_COLLISION_FRAMED; static final String ATT_PREFIX; static final String ATT_NUMBER; static final String ATT_OFFSETX; static final String ATT_OFFSETY; static final String ATT_WIDTH; static final String ATT_HEIGHT; static final String ATT_MIRROR; }### Answer:
@Test void testEquals() { final Map<Integer, Collection<Collision>> collisions = new HashMap<>(); collisions.put(Integer.valueOf(1), Arrays.asList(new Collision("anim%1", 0, 1, 2, 3, true))); collisions.put(Integer.valueOf(2), Arrays.asList(new Collision("anim%2", 3, 2, 1, 0, false))); final CollidableFramedConfig config = new CollidableFramedConfig(collisions); assertEquals(config, config); assertEquals(config, new CollidableFramedConfig(collisions)); assertNotEquals(config, null); assertNotEquals(config, new Object()); assertNotEquals(config, new CollidableFramedConfig(new HashMap<>())); }