@Test
public void testPickerFormatSetFormatStringsNullElements() {

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