@Test
  @Concurrent(count=4)
  public void testTimestampsInFullRange() throws IOException {
    Random rand = new Random(2904974913L);
    for (int i = 0; i < 10000; ++i) {
      checkTimestampWithAndWithoutNanos(Timestamp.ofEpochMilli(rand.nextLong()), randomNanos(rand));
    }
  }
Test timestamps that don't necessarily fit between 1970 and 2038. This depends on HIVE-4525
being fixed.
serde/src/test/org/apache/hadoop/hive/serde2/io/TestTimestampWritableV2.java