@Test
    void validateValueInternal_maxTime_LocalTime_wrong() {
        when(datePicker.isTimeOnly()).thenReturn(Boolean.TRUE);
        when(datePicker.getMaxdate()).thenReturn(LocalTime.of(12, 00));
        DatePicker.ValidationResult validationResult = datePicker.validateValueInternal(context, LocalTime.of(15, 00));
        assertFalse(datePicker.isValid());
        assertEquals(DatePicker.ValidationResult.INVALID_MAX_DATE, validationResult);
    }
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