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

    final TimestampParser tsp = new TimestampParser(patterns);
    Assert.assertEquals(Timestamp.valueOf("2008-06-03 11:05:30"),
        tsp.parseTimestamp("Tue, 3 Jun 2008 11:05:30 GMT"));
  }
Test for pattern that does not contain all date fields.
common/src/test/org/apache/hive/common/util/TestTimestampParser.java