### Question:
DateUtil { public static Date stripTime(final Date date) { return DateUtils.truncate(date, Calendar.DAY_OF_MONTH); } private  DateUtil(); static Date joinDateAndTime(final Date date, final Date time); static Date newDate(final int year, final int month, final int date); static Date newDate(final int year,
                               final int month,
                               final int date,
                               final int hourOfDay,
                               final int minute,
                               final int second); static Date stripDate(final Date date); static Date stripTime(final Date date);  }### Answer:
@Test public void testStripTime() { Date datetime = DateUtil.newDate(2008, Calendar.JULY, 3, 22, 56, 32); Date expected = DateUtil.newDate(2008, Calendar.JULY, 3); Date stripped = DateUtil.stripTime(datetime); assertEquals(expected, stripped); }