static java.sql.Time parseSqlTime(final String value) {
        try {
            // JDK format in Time.valueOf is compatible with DATE_FORMAT
            return Time.valueOf(value);
        } catch (IllegalArgumentException e) {
            return throwRuntimeParseException(value, new ParseException(value, 0), SQL_TIME_FORMAT);
        }
    }
@Test
    public void testTime() {
        long now = System.currentTimeMillis();

        Time time1 = new Time(now);
        Time time2 = DateHelper.parseSqlTime(time1.toString());

        assertSqlTimesEqual(time1, time2);
    }