### Question:
DateTimeUtil { public static java.sql.Date parseSQLDate(String pattern, String date) throws ParseException { return new java.sql.Date(parseDate(pattern, date).getTime()); }  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 shouldParseSQLDateInDefaultTimeZone() throws Exception { assertEquals(expectedSQLDate("2012-02-28 02:10:15", null), DateTimeUtil.parseSQLDate("yyyy-MM-dd HH:mm:ss", "2012-02-28 02:10:15")); }
@Test public void shouldParseSQLDateInChicagoTimeZone() throws Exception { assertEquals(expectedSQLDate("2012-02-28 00:10:15", "GMT"), DateTimeUtil.parseSQLDate("yyyy-MM-dd HH:mm:ss Z", "2012-02-27 18:10:15 -0600")); }