### Question:
EnumType extends NamespaceOwnedElement implements SimpleType { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("name: \"" + getName() + "\""); sb.append(", "); sb.append("literals: " + literals); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } EnumType(final Identifier id, final String name, final List<EnumLiteral> literals,
            final List<TaggedValue> taggedValues); @Override void accept(final Visitor visitor); @Override List<EnumLiteral> getLiterals(); @Override boolean isAbstract(); @Override boolean isClassType(); @Override boolean isDataType(); @Override boolean isEnumType(); @Override String toString();  }### Answer:
@Test public void testToString() { String string1 = enumType.toString(); String string2 = "{id: 1234, name: \"TestEnumType\", literals: []}"; assertEquals(string2, string1); }