@Test
public void testInit() throws Exception {

    LocalDate now = LocalDate.now();
    LocalDate min = now.minusDays(3);
    LocalDate max = min.plusMonths(3);
    mCalendarManager.init(now, min, max);
    assertEquals(now, mCalendarManager.getSelectedDay());
    assertEquals(min, mCalendarManager.getMinDate());
    assertEquals(max, mCalendarManager.getMaxDate());
    assertEquals(now.withDayOfMonth(1), mCalendarManager.getActiveMonth());
    CalendarUnit unit = new Month(now, now, min, max);
    unit.setSelected(true);
    assertEquals(unit, mCalendarManager.getUnits());
}