### Question:
DateTimeUtil { public static java.sql.Time parseTime(String pattern, String time) throws ParseException { return parseTime(pattern, time, null); }  static java.util.Date parseDate(String pattern, String date); static java.util.Date parseDate(String pattern, String date, TimeZone timeZone); static Date parseDateTime(String dateTime); static java.util.Date parseDate(String date); static java.sql.Date parseSQLDate(String pattern, String date); static java.sql.Date parseSQLDate(String date); static java.sql.Timestamp parseTimestamp(String pattern, String dateTime); static java.sql.Timestamp parseTimestamp(String pattern, String dateTime, TimeZone timeZone); static java.sql.Timestamp parseTimestamp(String dateTime, TimeZone timeZone); static java.sql.Time parseTime(String pattern, String time); static java.sql.Time parseTime(String pattern, String time, TimeZone timeZone); static java.sql.Time parseTime(String time); static final String STANDARD_DATETIME_FORMAT; static final String ISO_DATETIME_FORMAT; static final String STANDARD_DATE_FORMAT; static final String STANDARD_TIME_FORMAT; static final String STANDARD_TIMEWITHMILLISEC_FORMAT; static final String STANDARD_DATETIMEWITHMILLISEC_FORMAT; static final String ISO_DATETIMEWITHMILLISEC_FORMAT; static final String[] dateTimeFormats; }### Answer:
@Test public void shouldParseTimeInDefaultTimeZone() throws Exception { assertEquals(expectedTime("17:10:15", null), DateTimeUtil.parseTime("HH:mm:ss", "17:10:15", null)); }
@Test public void shouldParseTime_withTimezone_returnShifterTime() throws Exception { assertEquals(expectedTime("17:19:00", null), DateTimeUtil.parseTime("HH:mm:ss", "19:19:00", TimeZone.getTimeZone("GMT-05:00"))); }
@Test public void shouldParseTimeInChicagoTimeZone() throws Exception { assertEquals(expectedTime("14:10:15", "GMT"), DateTimeUtil.parseTime("HH:mm:ss Z", "8:10:15 -0600", null)); }