@Test
public void testPickerFormatterConstructorWithParameterNull() {

    DatePickerFormatter defaultFormatter = new DatePickerFormatter();
    DateFormat[] defaultFormats = defaultFormatter.getFormats();
    DatePickerFormatter formatter = new DatePickerFormatter((DateFormat[])null);
    DateFormat[] formats = formatter.getFormats();
    assertNotNull("formats must not be null", formats);
    assertEquals(defaultFormats.length, formats.length);
    for (int i = 0; i < defaultFormats.length; i++) {
        assertEquals("format must be equals to default at " + i, 
                defaultFormats[i], formats[i]);
    }
}