@Test
public void testNext() throws Exception {

    LocalDate from = LocalDate.now().plusWeeks(1);
    RangeUnit unit = mock(RangeUnit.class);
    when(unit.next()).thenReturn(true);
    when(unit.getFrom()).thenReturn(from);
    mCalendarManager.setUnit(unit);
    boolean result = mCalendarManager.next();
    assertTrue(result);
    InOrder order = inOrder(unit);
    order.verify(unit).next();
    order.verify(unit).select(mCalendarManager.getSelectedDay());
    assertEquals(from.withDayOfMonth(1), mCalendarManager.getActiveMonth());
}