### Question:
DateUtils { public static Date normalizeDate(Date date) { try { DateTimeFormatter dtf = DATE_FORMATTER; TemporalAccessor ta = dtf.parse(dtf.format(toLocalDate(date))); LocalDate localDateTime = LocalDate.from(ta); return toDate(localDateTime); } catch (DateTimeParseException e) { throw new AssertException("Unexpected exception parsing date from a known format", e); } }  static List<Date> getHolidays(int year); static boolean isHoliday(Date date); static Date getNormalizedToday(); static boolean isHoliday(Calendar cal); static boolean isWeekend(Calendar cal); static Date normalizeDate(Date date); static String formatDate(Date date); static String formatDateTimestamp(Date date); static String formatCurrentTime(); static Date getDate(int year, int month, int day); static int getDaysBetween(Date date1, Date date2); static int getBusinessDaysBetween(Date date1, Date date2); static String formatDuration(long millis); static final long MS_PER_SEC; static final long MS_PER_MIN; static final long MS_PER_HOUR; static final long MS_PER_DAY; }### Answer:
@Test public void testNormalize() { long time = testDate.getTime(); long threeHourOffset = 3 * (60 * 60 * 1000); long future = time + threeHourOffset; Date nowDate = new Date(time); Date futureDate = new Date(future); assertNotEquals(nowDate, futureDate); Date nowNormalized = DateUtils.normalizeDate(nowDate); Date futureNormalized = DateUtils.normalizeDate(futureDate); assertEquals(nowNormalized, futureNormalized); }