### Question:
CollisionConstraint { @Override public String toString() { return new StringBuilder().append(getClass().getSimpleName()).append(constraints).toString(); } CollisionConstraint(); void add(Orientation orientation, String group); Map<Orientation, Collection<String>> getConstraints(); Collection<String> getConstraints(Orientation orientation); boolean has(Orientation orientation, String group); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString();  }### Answer:
@Test void testToString() { assertEquals("CollisionConstraint{NORTH=[], NORTH_EAST=[], EAST=[group], SOUTH_EAST=[], " + "SOUTH=[], SOUTH_WEST=[], WEST=[], NORTH_WEST=[]}", constraint.toString()); }