### Question:
DefaultIntervalLength extends DefaultDuration implements IntervalLength { @Override public boolean equals(final Object object) { if (object == this) { return true; } if (object instanceof DefaultIntervalLength) { final DefaultIntervalLength that = (DefaultIntervalLength) object; return Objects.equals(this.factor, that.factor) && Objects.equals(this.radix, that.radix) && Objects.equals(this.unit, that.unit) && Objects.equals(this.value, that.unit); } return false; } DefaultIntervalLength(final Unit unit, final int radix, final int factor, final int value); @Override Unit getUnit(); @Override int getRadix(); @Override int getFactor(); @Override int getValue(); @Override long getTimeInMillis(); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEquals() { assertFalse(intervalLength1.equals(null)); assertEquals(intervalLength1, intervalLength1); assertFalse(intervalLength1.equals(intervalLength2)); }