### Question:
FixedMillisecond extends RegularTimePeriod implements Serializable { @Override public int hashCode() { return (int) this.time; } FixedMillisecond();  FixedMillisecond(long millisecond);  FixedMillisecond(Date time); Date getTime(); @Override void peg(Calendar calendar); @Override RegularTimePeriod previous(); @Override RegularTimePeriod next(); @Override boolean equals(Object object); @Override int hashCode(); @Override int compareTo(TimePeriod o1); @Override long getFirstMillisecond(); @Override long getFirstMillisecond(Calendar calendar); @Override long getLastMillisecond(); @Override long getLastMillisecond(Calendar calendar); @Override long getMiddleMillisecond(); @Override long getMiddleMillisecond(Calendar calendar); @Override long getSerialIndex();  }### Answer:
@Test public void testHashcode() { FixedMillisecond m1 = new FixedMillisecond(500000L); FixedMillisecond m2 = new FixedMillisecond(500000L); assertEquals(m1, m2); int h1 = m1.hashCode(); int h2 = m2.hashCode(); assertEquals(h1, h2); }