@Test
public void testStartOfDay() {

    // want to be in the middle of a month
    int day = midJune.get(Calendar.DAY_OF_MONTH);
    CalendarUtils.startOfDay(midJune);
    assertEquals(day, midJune.get(Calendar.DATE));
    midJune.add(Calendar.MILLISECOND, -1);
    assertEquals(day - 1, midJune.get(Calendar.DATE));
}