### Question:
IntegerTime implements Time { @Override public void setTime(Time t) { if (t instanceof IntegerTime) { IntegerTime it = (IntegerTime) t; this.time = it.time; } } IntegerTime();  IntegerTime(int time); @Override boolean equals(Time t); @Override int hashCode(); @Override boolean equals(Object obj); @Override void increment(); @Override void setTime(Time t); @Override String toString(); @Override Time clone(); @Override boolean greaterThan(Time t); @Override int intValue();  }### Answer:
@Test public void testSetTime() { Time t1 = new IntegerTime(rand.nextInt()); Time t2 = new IntegerTime(rand.nextInt()); assertFalse(t1.equals(t2)); t1.setTime(t2); assertTrue(t1.equals(t2)); t1.setTime(null); assertTrue(t1.equals(t2)); }