@Test
public void testPickerFormatSetFormatsNullElements() {

    JXDatePicker picker = new JXDatePicker();
    try {
        picker.setFormats(new DateFormat[] { null});
        fail("must not accept null elements in format array");
    } catch (NullPointerException e) {
        // doc'ed behaviour
    }
}