### Question:
CollisionGroup extends NameableAbstract { @Override public String toString() { return new StringBuilder(MINIMUM_LENGTH).append(getClass().getSimpleName()) .append(" (name=") .append(getName()) .append(")") .append(System.lineSeparator()) .append(Constant.TAB) .append(formulas) .toString(); } CollisionGroup(String name, Collection<CollisionFormula> formulas); static boolean same(String groupA, String groupB); Collection<CollisionFormula> getFormulas(); @Override String toString();  }### Answer:
@Test void testToString() { assertEquals("CollisionGroup (name=group)" + System.lineSeparator() + Constant.TAB + "[CollisionFormula (name=formula)" + System.lineSeparator() + Constant.TAB + "CollisionRange (output=X, minX=0, maxX=1, minY=2, maxY=3)" + System.lineSeparator() + Constant.TAB + "CollisionFunctionLinear (a=1.0, b=2.0)" + System.lineSeparator() + Constant.TAB + "CollisionConstraint{NORTH=[], NORTH_EAST=[], EAST=[], SOUTH_EAST=[], SOUTH=[], " + "SOUTH_WEST=[], WEST=[], NORTH_WEST=[]}" + System.lineSeparator() + "]", group.toString()); }