### Question:
Time implements Comparable<Time> { public boolean isZero() { return totalNsecs() == 0; } Time();  Time(int secs, int nsecs);  Time(double secs);  Time(Time t); Time add(Duration d); Time subtract(Duration d); Duration subtract(Time t); static Time fromMillis(long timeInMillis); static Time fromNano(long timeInNs); @Override String toString(); double toSeconds(); long totalNsecs(); boolean isZero(); void normalize(); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(Time t); public int secs; public int nsecs; }### Answer:
@Test public void testIsZero() { assertTrue(new Time(0, 0).isZero()); assertFalse(new Time(1, 0).isZero()); assertFalse(new Time(0, 1).isZero()); }