### Question:
CalendarUtil { public static Integer getMillisecond(Calendar calendar) { Integer millisecond = calendar.get(Calendar.MILLISECOND); return millisecond; }  static Calendar getCurrentTime(); static Calendar getCurrentTruncDate(); static Integer getYear(Calendar calendar); static Integer getMonth(Calendar calendar); static Integer getDay(Calendar calendar); static Integer getDayOfWeekNumber(Calendar cal); static Integer get24Hour(Calendar calendar); static Integer getMinute(Calendar calendar); static Integer getSecond(Calendar calendar); static Integer getMillisecond(Calendar calendar); static Calendar getCalendar(String yyyy, String mm, String dd); static Calendar getCalendar(int yyyy, int mm, int dd); static Calendar getCalendar(String yyyy, String mm, String dd, String hh, String mi, String ss); static Calendar getCalendar(int yyyy, int mm, int dd, int hh, int mi, int ss); static Calendar dateTrunc(Calendar calendar); static boolean isFirstAfterSecond(Calendar first, Calendar second); static Calendar deepCopy(Calendar src); static Calendar addYears(Calendar src, int years); static Calendar addMonths(Calendar src, int months); static Calendar addDays(Calendar src, int days); static Calendar addHours(Calendar src, int hours); static Calendar addMinutes(Calendar src, int minutes); static Calendar addSeconds(Calendar src, int seconds); static Calendar getCalendar(long timeInMillis); static String toYYYYMMDDHHMISS(Calendar calendar); static Calendar testData; }### Answer:
@Test public void getMillisecond_A$Calendar() throws Exception { Integer expected = 234; Calendar arg0 = Calendar.getInstance(); arg0.set(Calendar.MILLISECOND, expected); Integer actual = CalendarUtil.getMillisecond(arg0); assertEquals(expected, actual); }
@Test public void getMillisecond_A$Calendar_999() throws Exception { Integer expected = 999; Calendar arg0 = Calendar.getInstance(); arg0.set(Calendar.MILLISECOND, expected); Integer actual = CalendarUtil.getMillisecond(arg0); assertEquals(expected, actual); }
@Test public void getMillisecond_A$Calendar_1000() throws Exception { Integer expected = 0; Calendar arg0 = Calendar.getInstance(); arg0.set(Calendar.MILLISECOND, 1000); Integer actual = CalendarUtil.getMillisecond(arg0); assertEquals(expected, actual); }