@Test
public void testInitWeek() throws Exception {

    LocalDate now = LocalDate.now();
    LocalDate min = now.minusDays(3);
    LocalDate max = min.plusMonths(3);
    CalendarManager manager = new CalendarManager(now,
            CalendarManager.State.WEEK, min, max);
    CalendarUnit unit = new Week(now, now, min, max);
    unit.setSelected(true);
    assertEquals(unit, manager.getUnits());
}