@Test
public void testSetDateDoesNotChangeOriginal() {

    JXDatePicker picker = new JXDatePicker();
    Date date = calendar.getTime();
    Date copy = new Date(date.getTime());
    picker.setDate(date);
    assertEquals(copy, date);
}