### Question:
TimeUtil { public static String convertMillisToMinSecFormat(long millis) { long ms = millis % 1000; long s = (millis / 1000) % 60; long m = ((millis / 1000) / 60) % 60; if (s > 0 && m <= 0) { return String.format("%d sec %d ms", s, ms); } else if (s > 0 || m > 0) { return String.format("%d min %d sec %d ms", m, s, ms); } else { return String.format("%d ms", ms); } }  static LocalDate min(LocalDate one, LocalDate two); static LocalTime min(LocalTime one, LocalTime two); static LocalDateTime min(LocalDateTime one, LocalDateTime two); static Instant min(Instant one, Instant two); static LocalDate max(LocalDate one, LocalDate two); static LocalTime max(LocalTime one, LocalTime two); static LocalDateTime max(LocalDateTime one, LocalDateTime two); static Instant max(Instant one, Instant two); static LocalDate firstDayOfYear(int year); static LocalDate lastDayOfYear(int year); static boolean isBeforeOrEquals(LocalDate val, LocalDate compare); static boolean isBeforeOrEquals(LocalDateTime val, LocalDateTime compare); static boolean isBeforeOrEquals(Instant val, Instant compare); static boolean isAfterOrEquals(LocalDate val, LocalDate compare); static boolean isAfterOrEquals(LocalDateTime val, LocalDateTime compare); static boolean isAfterOrEquals(Instant val, Instant compare); static String convertMillisToMinSecFormat(long millis);  }### Answer:
@Test public void convertMillisToMinSecFormat() { assertThat(TimeUtil.convertMillisToMinSecFormat(100), equalTo("100 ms")); assertThat(TimeUtil.convertMillisToMinSecFormat(1010), equalTo("1 sec 10 ms")); assertThat(TimeUtil.convertMillisToMinSecFormat(60010), equalTo("1 min 0 sec 10 ms")); }