### Question:
DateTickUnit extends TickUnit implements Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof DateTickUnit)) { return false; } if (!super.equals(obj)) { return false; } DateTickUnit that = (DateTickUnit) obj; if (!(this.unitType.equals(that.unitType))) { return false; } if (this.count != that.count) { return false; } if (!ObjectUtilities.equal(this.formatter, that.formatter)) { return false; } return true; } DateTickUnit(DateTickUnitType unitType, int multiple);  DateTickUnit(DateTickUnitType unitType, int multiple,
            DateFormat formatter);  DateTickUnit(DateTickUnitType unitType, int multiple,
            DateTickUnitType rollUnitType, int rollMultiple,
            DateFormat formatter); DateTickUnitType getUnitType(); int getMultiple(); DateTickUnitType getRollUnitType(); int getRollMultiple(); @Override String valueToString(double milliseconds); String dateToString(Date date); Date addToDate(Date base, TimeZone zone); Date rollDate(Date base); Date rollDate(Date base, TimeZone zone); int getCalendarField(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEquals() { DateTickUnit t1 = new DateTickUnit(DateTickUnitType.DAY, 1); DateTickUnit t2 = new DateTickUnit(DateTickUnitType.DAY, 1); assertEquals(t1, t2); }