@Test
  public void testPatternISO8601() {
    final String[] patterns = {"iso8601"};

    final TimestampParser tsp = new TimestampParser(patterns);
    Assert.assertEquals(Timestamp.valueOf("1945-12-31 23:59:59"),
        tsp.parseTimestamp("1945-12-31T23:59:59Z"));
  }
Test for pattern that does not contain all date fields.
common/src/test/org/apache/hive/common/util/TestTimestampParser.java