### Question:
DefaultPeriodDuration extends DefaultDuration implements PeriodDuration { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultPeriodDuration) { final DefaultPeriodDuration that = (DefaultPeriodDuration) object; return Objects.equals(this.days, that.days) && Objects.equals(this.hours, that.hours) && Objects.equals(this.minutes, that.minutes) && Objects.equals(this.months, that.months) && Objects.equals(this.seconds, that.seconds) && Objects.equals(this.years, that.years); } return false; } DefaultPeriodDuration(final InternationalString years, final InternationalString months, final InternationalString weeks, final InternationalString days,
            final InternationalString hours, final InternationalString minutes, final InternationalString seconds);  DefaultPeriodDuration(long durationInMilliSeconds); @Override InternationalString getDesignator(); @Override InternationalString getYears(); @Override InternationalString getMonths(); @Override InternationalString getDays(); @Override InternationalString getTimeIndicator(); @Override InternationalString getHours(); @Override InternationalString getMinutes(); @Override InternationalString getSeconds(); InternationalString getWeek(); @Override long getTimeInMillis(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEquals() { assertFalse(periodDuration1.equals(null)); assertEquals(periodDuration1, periodDuration1); assertFalse(periodDuration1.equals(periodDuration2)); }