@Test
public void testPrev() throws Exception {

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