### Question:
DefaultDateAndTime extends DefaultTemporalPosition implements DateAndTime { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultDateAndTime && super.equals(object)) { final DefaultDateAndTime that = (DefaultDateAndTime) object; return Objects.equals(this.calendarDate, that.calendarDate) && Objects.equals(this.calendarEraName, that.calendarEraName) && Objects.equals(this.clockTime, that.clockTime); } return false; } DefaultDateAndTime(final TemporalReferenceSystem frame, final IndeterminateValue indeterminatePosition, final InternationalString calendarEraName, final int[] calendarDate, final Number[] clockTime); @Override Number[] getClockTime(); @Override InternationalString getCalendarEraName(); @Override int[] getCalendarDate(); void setCalendarEraName(final InternationalString calendarEraName); void setCalendarDate(final int[] calendarDate); void setClockTime(final Number[] clockTime); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEquals() { assertFalse(dateAndTime1.equals(null)); assertEquals(dateAndTime1, dateAndTime1); }