@Test
public void testCommitCancelActionsFire() {

    JXMonthView picker = new JXMonthView();
    Action commitAction = picker.getActionMap().get(JXMonthView.COMMIT_KEY);
    ActionReport report = new ActionReport();
    picker.addActionListener(report);
    commitAction.actionPerformed(null);
    assertEquals(1, report.getEventCount());
    assertEquals(JXMonthView.COMMIT_KEY, report.getLastActionCommand());
    report.clear();
    Action cancelAction = picker.getActionMap().get(JXMonthView.CANCEL_KEY);
    cancelAction.actionPerformed(null);
    assertEquals(1, report.getEventCount());
    assertEquals(JXMonthView.CANCEL_KEY, report.getLastActionCommand());
}