### Question:
CollidableConfig { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + group.hashCode(); result = prime * result + accepted.hashCode(); return result; } CollidableConfig(Integer group, Collection<Integer> accepted); static CollidableConfig imports(Configurer configurer); static void exports(Xml root, Collidable collidable); Integer getGroup(); Collection<Integer> getAccepted(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString(); static final String NODE_COLLIDABLE; static final String ATT_GROUP; static final String ATT_ACCEPTED; static final Integer DEFAULT_GROUP; }### Answer:
@Test void testHashCode() { final CollidableConfig config = new CollidableConfig(Integer.valueOf(1), Arrays.asList(Integer.valueOf(2))); assertHashEquals(config, config); assertHashEquals(config, new CollidableConfig(Integer.valueOf(1), Arrays.asList(Integer.valueOf(2)))); assertHashNotEquals(config, new Object()); assertHashNotEquals(config, new CollidableConfig(Integer.valueOf(0), Arrays.asList(Integer.valueOf(2)))); assertHashNotEquals(config, new CollidableConfig(Integer.valueOf(1), Collections.emptyList())); assertHashNotEquals(config, new CollidableConfig(Integer.valueOf(1), Arrays.asList(Integer.valueOf(0)))); }