### Question:
CollidableFramedConfig { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + collisions.hashCode(); return result; } 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 testHashCode() { 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); assertHashEquals(config, config); assertHashEquals(config, new CollidableFramedConfig(collisions)); assertHashNotEquals(config, new Object()); assertHashNotEquals(config, new CollidableFramedConfig(new HashMap<>())); }