@Test
    void validateMinMax_Date_wrongTime() {
        java.util.Calendar minDate = GregorianCalendar.getInstance();
        minDate.set(2019, 10, 12);
        minDate.set(Calendar.HOUR_OF_DAY, 11);
        minDate.set(Calendar.MINUTE, 59);
        minDate.set(Calendar.SECOND, 00);
        minDate.set(Calendar.MILLISECOND, 0);
        java.util.Calendar maxDate = GregorianCalendar.getInstance();
        maxDate.set(2019, 10, 12);
        maxDate.set(Calendar.HOUR_OF_DAY, 10);
        maxDate.set(Calendar.MINUTE, 00);
        maxDate.set(Calendar.SECOND, 00);
        maxDate.set(Calendar.MILLISECOND, 0);

        when(datePicker.getMindate()).thenReturn(minDate.getTime());
        when(datePicker.getMaxdate()).thenReturn(maxDate.getTime());
        doCallRealMethod().when(datePicker).validateMinMax(context);
        assertThrows(FacesException.class, () -> datePicker.validateMinMax(context));
        verify(datePicker, atLeastOnce()).getMindate();
        verify(datePicker, atLeastOnce()).getMaxdate();
    }
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