@Test
    void getConvertedValue_Date() {
        Class<?> type = Date.class;
        setupValues(type, Locale.ENGLISH);

        when(renderer.getConvertedValue(eq(context), eq(datePicker), any())).thenCallRealMethod();

        Object object = renderer.getConvertedValue(context, datePicker, "7/23/2019");
        assertEquals(type, object.getClass());
        Date date = (Date) object;
        java.util.Calendar calendar = new GregorianCalendar();
        calendar.setTime(date);
        assertEquals(2019, calendar.get(java.util.Calendar.YEAR));
        assertEquals(6, calendar.get(java.util.Calendar.MONTH));
        assertEquals(23, calendar.get(java.util.Calendar.DAY_OF_MONTH));
    }
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