@Test
  @Concurrent(count=4)
  public void testTimestampsWithinPositiveIntRange() throws IOException {
    Random rand = new Random(294722773L);
    for (int i = 0; i < 10000; ++i) {
      long millis = ((long) rand.nextInt(Integer.MAX_VALUE)) * 1000;
      checkTimestampWithAndWithoutNanos(Timestamp.ofEpochMilli(millis), randomNanos(rand));
    }
  }
Test serializing and deserializing timestamps that can be represented by a number of seconds
from 0 to 2147483647 since the UNIX epoch.
serde/src/test/org/apache/hadoop/hive/serde2/io/TestTimestampWritableV2.java