### Question:
EnumLiteral extends NamedModelElement implements HasName { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("name: \"" + getName() + "\""); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } EnumLiteral(final Identifier id, final String name, final List<TaggedValue> taggedValues);  EnumLiteral(final String name, final List<TaggedValue> taggedValues); @Override void accept(final Visitor visitor); @Override String toString();  }### Answer:
@Test public void testToString() { String string1 = enumLiteral.toString(); String string2 = "{id: 1234, name: \"TestEnumLiteral\"}"; assertEquals(string2, string1); }