### Question:
TimeUtil { public static boolean isBeforeOrEquals(LocalDate val, LocalDate compare) { return val.isBefore(compare) || val.isEqual(compare); }  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 isBeforeOrEquals() { assertThat(TimeUtil.isBeforeOrEquals(twoThousand, twoThousandOne), equalTo(true)); assertThat(TimeUtil.isBeforeOrEquals(twoThousand, twoThousand), equalTo(true)); assertThat(TimeUtil.isBeforeOrEquals(twoThousandOne, twoThousand), equalTo(false)); assertThat(TimeUtil.isBeforeOrEquals(twoThousand.toLocalDate(), twoThousandOne.toLocalDate()), equalTo(true)); assertThat(TimeUtil.isBeforeOrEquals(twoThousand.toLocalDate(), twoThousand.toLocalDate()), equalTo(true)); assertThat(TimeUtil.isBeforeOrEquals(twoThousandOne.toLocalDate(), twoThousand.toLocalDate()), equalTo(false)); assertThat(TimeUtil.isBeforeOrEquals(twoThousand.toInstant(UTC), twoThousandOne.toInstant(UTC)), equalTo(true)); assertThat(TimeUtil.isBeforeOrEquals(twoThousand.toInstant(UTC), twoThousand.toInstant(UTC)), equalTo(true)); assertThat(TimeUtil.isBeforeOrEquals(twoThousandOne.toInstant(UTC), twoThousand.toInstant(UTC)), equalTo(false)); }