### Question:
Time implements Comparable<Time> { public static Time fromMillis(long timeInMillis) { int secs = (int) (timeInMillis / 1000); int nsecs = (int) (timeInMillis % 1000) * 1000000; return new Time(secs, nsecs); } 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 testFromMillis() { assertEquals(new Time(0, 0), Time.fromMillis(0)); assertEquals(new Time(0, 1000000), Time.fromMillis(1)); assertEquals(new Time(1, 0), Time.fromMillis(1000)); assertEquals(new Time(10, 0), Time.fromMillis(10000)); assertEquals(new Time(1, 1000000), Time.fromMillis(1001)); assertEquals(new Time(1, 11000000), Time.fromMillis(1011)); }