static java.sql.Date parseSqlDate(final String value) {
        try {
            // JDK format in Date.valueOf is compatible with DATE_FORMAT
            return java.sql.Date.valueOf(value);
        } catch (IllegalArgumentException e) {
            return throwRuntimeParseException(value, new ParseException(value, 0), SQL_DATE_FORMAT);
        }
    }
@Test
    public void testSqlDateFailsForInvalidDate() {
        // Given
        String invalidDate = "Trust me, I am a date";

        // When
        assertThatThrownBy(() -> DateHelper.parseSqlDate(invalidDate))
                .isInstanceOf(RuntimeException.class)
                .hasCauseInstanceOf(ParseException.class);
    }