@Test
public void testDateEditorFireCancelPickerCancel() throws ParseException {

    DatePickerCellEditor editor = new DatePickerCellEditor();
    final CellEditorReport report = new CellEditorReport();
    editor.addCellEditorListener(report);
    JXDatePicker picker = (JXDatePicker) editor
            .getTableCellEditorComponent(null, new Date(), false, -1, -1);
    picker.cancelEdit();
    assertEquals(1, report.getEventCount());
    assertEquals(1, report.getCanceledEventCount());
}