@Test
    void validateMinMax_LocalDateTime_wrongTime() {
        when(datePicker.getMindate()).thenReturn(LocalDateTime.of(2019, 11, 12, 11, 59));
        when(datePicker.getMaxdate()).thenReturn(LocalDateTime.of(2019, 11, 12, 10, 00));
        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