### Question:
CollidableConfig { @Override public boolean equals(Object object) { if (this == object) { return true; } if (object == null || object.getClass() != getClass()) { return false; } final CollidableConfig other = (CollidableConfig) object; return group.equals(other.getGroup()) && accepted.containsAll(other.getAccepted()) && other.getAccepted().containsAll(accepted); } 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 testEquals() { final CollidableConfig config = new CollidableConfig(Integer.valueOf(1), Arrays.asList(Integer.valueOf(2))); assertEquals(config, config); assertEquals(config, new CollidableConfig(Integer.valueOf(1), Arrays.asList(Integer.valueOf(2)))); assertNotEquals(config, null); assertNotEquals(config, new Object()); assertNotEquals(config, new CollidableConfig(Integer.valueOf(0), Arrays.asList(Integer.valueOf(2)))); assertNotEquals(config, new CollidableConfig(Integer.valueOf(1), Collections.emptyList())); assertNotEquals(config, new CollidableConfig(Integer.valueOf(1), Arrays.asList(Integer.valueOf(0)))); }