### Question:
TimeUtil { public static String toFriendlyDuration(long durationSecs) { return toFriendlyDuration(durationSecs, SECONDS); } private  TimeUtil(); static String toFriendlyDuration(long durationSecs); static String toFriendlyDuration(long duration, TimeUnit timeUnit); static String toFriendlyDurationSince(Date date); static String toCompactDuration(long durationSecs); static String toCompactDuration(long duration, TimeUnit timeUnit); static String toCompactDurationSince(Date date);  }### Answer:
@Test public void toFriendlyDuration_0_seconds() { toFriendlyDuration(0, "0 seconds"); }
@Test public void toFriendlyDuration_1_second() { toFriendlyDuration(1, "1 second"); }
@Test public void toFriendlyDuration_1001_milliseconds() { toFriendlyDuration(1001, MILLISECONDS, "1 second"); }
@Test public void toFriendlyDuration_2_seconds() { toFriendlyDuration(2, "2 seconds"); }
@Test public void toFriendlyDuration_1_minute() { toFriendlyDuration(60, "1 minute"); }
@Test public void toFriendlyDuration_1_minute_1_second() { toFriendlyDuration(61, "1 minute 1 second"); }
@Test public void toFriendlyDuration_1_minute_2_seconds() { toFriendlyDuration(62, "1 minute 2 seconds"); }
@Test public void toFriendlyDuration_2_minutes() { toFriendlyDuration(120, "2 minutes"); }
@Test public void toFriendlyDuration_60_weeks_4_days_5_hours_6_minutes_7_seconds() { toFriendlyDuration( 60 * DAYS.toSeconds(7) + DAYS.toSeconds(4) + HOURS.toSeconds(5) + MINUTES.toSeconds(6) + 7, "60 weeks 4 days 5 hours 6 minutes 7 seconds"); }