### Question:
TimeUtil { public static LocalDate max(LocalDate one, LocalDate two) { return Nulls.noneNullValue(one, two) ? (one.isBefore(two) ? two : one) : Nulls.notNull(one, two); }  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 max() { assertThat(TimeUtil.max(twoThousand, twoThousandOne), equalTo(twoThousandOne)); assertThat(TimeUtil.max(twoThousand, twoThousand), equalTo(twoThousand)); assertThat(TimeUtil.max(null, twoThousand), equalTo(twoThousand)); assertThat(TimeUtil.max(twoThousand.toLocalDate(), twoThousandOne.toLocalDate()), equalTo(twoThousandOne.toLocalDate())); assertThat(TimeUtil.max(twoThousand.toLocalDate(), twoThousand.toLocalDate()), equalTo(twoThousand.toLocalDate())); assertThat(TimeUtil.max(null, twoThousand.toLocalDate()), equalTo(twoThousand.toLocalDate())); assertThat(TimeUtil.max(twoThousand.toLocalTime(), twoThousandOne.toLocalTime()), equalTo(twoThousandOne.toLocalTime())); assertThat(TimeUtil.max(twoThousand.toLocalTime(), twoThousand.toLocalTime()), equalTo(twoThousand.toLocalTime())); assertThat(TimeUtil.max(null, twoThousand.toLocalTime()), equalTo(twoThousand.toLocalTime())); assertThat(TimeUtil.max(twoThousand.toInstant(UTC), twoThousandOne.toInstant(UTC)), equalTo(twoThousandOne.toInstant(UTC))); assertThat(TimeUtil.max(twoThousand.toInstant(UTC), twoThousand.toInstant(UTC)), equalTo(twoThousand.toInstant(UTC))); assertThat(TimeUtil.max(null, twoThousand.toInstant(UTC)), equalTo(twoThousand.toInstant(UTC))); }