### Question:
CalendarUtils { public static void incrementCalendarToMidnight (Calendar calendar) { calendar.add(Calendar.DAY_OF_YEAR, 1); calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); } private  CalendarUtils(); static void incrementCalendarToMidnight(Calendar calendar); static final Pattern datePattern; }### Answer:
@Test public void testIncrementCalendarToMidnight () throws Exception { Calendar calendar = Mockito.mock(Calendar.class); CalendarUtils.incrementCalendarToMidnight(calendar); verify(calendar).add(eq(Calendar.DAY_OF_YEAR), eq(1)); verify(calendar).set(eq(Calendar.HOUR_OF_DAY), eq(0)); verify(calendar).set(eq(Calendar.MINUTE), eq(0)); verify(calendar).set(eq(Calendar.SECOND), eq(0)); verify(calendar).set(eq(Calendar.MILLISECOND), eq(0)); }