### Question:
DateTickUnit extends TickUnit implements Serializable { @Override public int hashCode() { int result = 19; result = 37 * result + this.unitType.hashCode(); result = 37 * result + this.count; result = 37 * result + this.formatter.hashCode(); return result; } 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 testHashCode() { DateTickUnit t1 = new DateTickUnit(DateTickUnitType.DAY, 1); DateTickUnit t2 = new DateTickUnit(DateTickUnitType.DAY, 1); assertEquals(t1, t2); int h1 = t1.hashCode(); int h2 = t2.hashCode(); assertEquals(h1, h2); }