### Question:
DefaultCalendarEra extends AbstractIdentifiedObject implements CalendarEra { @Override public String toString() { StringBuilder s = new StringBuilder("CalendarEra:").append('\n'); if (getName() != null) { s.append("name:").append(getName().getCode()).append('\n'); } if (epochOfUse != null) { s.append("epochOfUse:").append(epochOfUse).append('\n'); } if (referenceEvent != null) { s.append("referenceEvent:").append(referenceEvent).append('\n'); } if (referenceDate != null) { s.append("referenceDate:").append(referenceDate).append('\n'); } if (julianReference != null) { s.append("julianReference:").append(julianReference).append('\n'); } if (datingSystem != null) { s.append("datingSystem:").append(datingSystem).append('\n'); } return s.toString(); } DefaultCalendarEra(Map<String, ?> properties,
            final CalendarDate referenceDate, final JulianDate julianReference, final Period epochOfUse); private  DefaultCalendarEra(); private  DefaultCalendarEra(final CalendarEra object); static DefaultCalendarEra castOrCopy(final CalendarEra object); @Override @XmlElement(name = "referenceEvent", required = true) InternationalString getReferenceEvent(); @Override CalendarDate getReferenceDate(); @Override JulianDate getJulianReference(); @Override @XmlElement(name = "epochOfUse", required = true) Period getEpochOfUse(); Collection<Calendar> getDatingSystem(); void setReferenceEvent(final InternationalString referenceEvent); void setReferenceDate(final CalendarDate referenceDate); void setJulianReference(final JulianDate julianReference); void setEpochOfUse(final Period epochOfUse); void setDatingSystem(final Collection<Calendar> newValues); @Override boolean equals(Object object, ComparisonMode mode); @Override String toString();  }### Answer:
@Test public void testToString() { String result = calendarEra1.toString(); assertFalse(calendarEra2.toString().equals(result)); }