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 testSqlDate() {
        long now = System.currentTimeMillis();

        java.sql.Date date1 = new java.sql.Date(now);
        java.sql.Date date2 = DateHelper.parseSqlDate(date1.toString());

        assertSqlDatesEqual(date1, date2);
    }