@Test
  @Concurrent(count=4)
  @Repeating(repetition=100)
  public void testMillisToSeconds() {
    assertEquals(0, TimestampUtils.millisToSeconds(0));
    assertEquals(-1, TimestampUtils.millisToSeconds(-1));
    assertEquals(-1, TimestampUtils.millisToSeconds(-999));
    assertEquals(-1, TimestampUtils.millisToSeconds(-1000));
    assertEquals(-2, TimestampUtils.millisToSeconds(-1001));
    assertEquals(-2, TimestampUtils .millisToSeconds(-1999));
    assertEquals(-2, TimestampUtils .millisToSeconds(-2000));
    assertEquals(-3, TimestampUtils .millisToSeconds(-2001));
    assertEquals(-99, TimestampUtils .millisToSeconds(-99000));
    assertEquals(-100, TimestampUtils .millisToSeconds(-99001));
    assertEquals(-100, TimestampUtils .millisToSeconds(-100000));
    assertEquals(1, TimestampUtils .millisToSeconds(1500));
    assertEquals(19, TimestampUtils .millisToSeconds(19999));
    assertEquals(20, TimestampUtils.millisToSeconds(20000));
  }
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