### Question:
DateUtil { public static void setCalender(Calendar calendar, int hour, int minute, int second, int milliSecond) { calendar.set(Calendar.HOUR_OF_DAY, hour); calendar.set(Calendar.MINUTE, minute); calendar.set(Calendar.SECOND, second); calendar.set(Calendar.MILLISECOND, milliSecond); }  static Date addDate(int field, int amount); static Date addDate(Date date, int field, int amount); static String format(Date date, String pattern); static Date getDayBegin(Date date); static Date getDayBegin(); static Date getDayEnd(Date date); static Date getDayEnd(); static void setCalender(Calendar calendar, int hour, int minute, int second, int milliSecond); static boolean isBetween(Date beginTime, Date endTime);  }### Answer:
@Test public void testSetCalender() { final GregorianCalendar calendar = new GregorianCalendar(); DateUtil.setCalender(calendar, 2, 30, 50, 0); Assert.assertEquals(2, calendar.getTime().getHours()); Assert.assertEquals(30, calendar.getTime().getMinutes()); Assert.assertEquals(50, calendar.getTime().getSeconds()); }