### Question:
DefaultInstant extends DefaultTemporalGeometricPrimitive implements Instant { @Override public String toString() { StringBuilder s = new StringBuilder(super.toString()).append('\n').append("Instant:").append('\n'); if (date != null) { s.append("date:").append(date).append('\n'); } if (temporalPosition != null) { s.append("temporalPosition :").append(temporalPosition).append('\n'); } return s.toString(); } DefaultInstant();  DefaultInstant(Map<String, ?> properties,  Date date);  DefaultInstant(final Map<String, ?> properties, final TemporalPosition temporalPosition); private  DefaultInstant(final Instant object); static DefaultInstant castOrCopy(final Instant object); @Override @XmlElement(name = "timePosition", required = true) Date getDate(); @Override TemporalPosition getTemporalPosition(); @Override boolean equals(Object object, ComparisonMode mode); @Override String toString();  }### Answer:
@Test public void testToString() { String result = instant1.toString(); assertFalse(instant2.toString().equals(result)); }