@Test
public void testAdjustingResetOnAccept() {

    JXMonthView view = new JXMonthView();
    Action select = view.getActionMap().get("selectNextDay");
    select.actionPerformed(null);
    DateSelectionReport report = new DateSelectionReport(view.getSelectionModel());
    Action cancel = view.getActionMap().get("acceptSelection");
    cancel.actionPerformed(null);
    assertFalse("ui keyboard action must have stopped model adjusting", 
            view.getSelectionModel().isAdjusting());
    assertEquals(1, report.getEventCount());
    assertEquals(EventType.ADJUSTING_STOPPED, report.getLastEvent().getEventType());
}