@Test
public void testConstructor() {

    calendar.setTimeInMillis(System.currentTimeMillis());
    calendar.add(Calendar.DAY_OF_MONTH, 5);
    Date expectedDate = cleanupDate(calendar);
    JXDatePicker datePicker = new JXDatePicker(calendar.getTime());
    assertTrue(expectedDate.equals(datePicker.getDate()));
}