private void setupMinMaxTime(Class type, Locale locale, String pattern) {
        when(datePicker.calculateLocale(any())).thenReturn(locale);
        when(valueExpression.getType(elContext)).thenReturn(type);
        when(datePicker.getPattern()).thenReturn(pattern);
        when(datePicker.isTimeOnly()).thenReturn(true);
        when(datePicker.calculateLocalizedPattern()).thenCallRealMethod();
        doCallRealMethod().when(datePicker).validateMinMax(any());
    }
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