### Question:
Range extends ModelElement { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("lower: " + lowerBound).append(", "); sb.append("upper: " + upperBound); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } Range(final Identifier id, final Occurs lower, final Occurs upper, final List<TaggedValue> taggedValues);  Range(final Occurs lower, final Occurs upper, final List<TaggedValue> taggedValues);  Range(final Occurs lower, final Occurs upper); @Override void accept(final Visitor visitor); Occurs getLower(); Occurs getUpper(); @Override String toString();  }### Answer:
@Test public void testToString() { String string1 = range.toString(); String string2 = "{lower: " + Occurs.ZERO + ", upper: " + Occurs.ONE + "}"; assertEquals(string2, string1); }