@Test
    void calculatePatternWithTimeRemove() {
        setupValues(null, Locale.ENGLISH);
        when(datePicker.isShowTime()).thenReturn(Boolean.TRUE);
        when(datePicker.getPattern()).thenReturn("yyyy-MM-dd KK:mm:ss a");
        assertEquals("yyyy-MM-dd HH:mm", datePicker.calculatePattern());
    }
Invalid {@link ResolverStyle}. The date 02/30/2019 is silently parsed to
02/28/2019 as default value 'SMART' is used.
primefaces/src/test/java/org/primefaces/component/datepicker/DatePickerTest.java