@Test
  public void testSetTimestamp() {
    // one VInt without nanos
    verifySetTimestamp(1000);

    // one VInt with nanos
    verifySetTimestamp(1001);

    // two VInt without nanos
    verifySetTimestamp((long) Integer.MAX_VALUE * 1000 + 1000);

    // two VInt with nanos
    verifySetTimestamp((long) Integer.MAX_VALUE * 1000 + 1234);
  }
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