@Test
public void testSecondsSince1981ToDate() {

    Date date = TimeUtil.secondsSince1981ToDate(667849283);
    final GregorianCalendar utcCalendar = createUtcCalendar();
    utcCalendar.setTime(date);
    assertEquals(2002, utcCalendar.get(Calendar.YEAR));
    assertEquals(2, utcCalendar.get(Calendar.MONTH));
    assertEquals(1, utcCalendar.get(Calendar.DAY_OF_MONTH));
    assertEquals(17, utcCalendar.get(Calendar.HOUR_OF_DAY));
    assertEquals(41, utcCalendar.get(Calendar.MINUTE));
    assertEquals(23, utcCalendar.get(Calendar.SECOND));
    date = TimeUtil.secondsSince1981ToDate(0);
    utcCalendar.setTime(date);
    assertEquals(1981, utcCalendar.get(Calendar.YEAR));
    assertEquals(0, utcCalendar.get(Calendar.MONTH));
    assertEquals(1, utcCalendar.get(Calendar.DAY_OF_MONTH));
    assertEquals(0, utcCalendar.get(Calendar.HOUR_OF_DAY));
    assertEquals(0, utcCalendar.get(Calendar.MINUTE));
    assertEquals(0, utcCalendar.get(Calendar.SECOND));
}