### Question:
TimeInterval { public static String getFormattedDurationShort(TimeInterval interval) { return getFormattedDurationShort(interval.ms); } private  TimeInterval(long duration, TimeUnit unit); static String getUnitStr(TimeUnit unit); static TimeInterval millis(long duration); static TimeInterval seconds(long duration); static TimeInterval minutes(long duration); static TimeInterval hours(long duration); static TimeInterval days(long duration); static TimeInterval weeks(long duration); static TimeInterval months(long duration); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static TimeInterval fromString(String interval); static String getFormattedDuration(TimeInterval interval); static String getFormattedDurationShort(TimeInterval interval); static String getFormattedDurationShort(long ms); static String getFormattedDuration(long ms); static final TimeInterval MINUTE; static final TimeInterval HOUR; final long duration; final TimeUnit unit; final long ms; }### Answer:
@Test public void getFormattedDurationShort() { assertEquals("0:00:00", TimeInterval.getFormattedDurationShort(0)); assertEquals("0:00:01", TimeInterval.getFormattedDurationShort(1000)); assertEquals("0:00:02", TimeInterval.getFormattedDurationShort(2000)); assertEquals("0:02:00", TimeInterval.getFormattedDurationShort(2000 * 60)); assertEquals("2:00:00", TimeInterval.getFormattedDurationShort(2000 * 60 * 60)); assertEquals("2:02:00", TimeInterval.getFormattedDurationShort(2000 * 60 * 60 + 2000 * 60)); assertEquals("2:02:02", TimeInterval.getFormattedDurationShort(2000 * 60 * 60 + 2000 * 60 + 2000)); assertEquals("20:02:02", TimeInterval.getFormattedDurationShort(20000 * 60 * 60 + 2000 * 60 + 2000)); }