DateConverter { public static Date decode(final long timestamp) { return new Date(timestamp); } private  DateConverter(); static Long[][] encode(final Collection<Date> dates); static Long encode(final Date date); static Date decode(final long timestamp); static long toTimestamp(final Date date); static Date fromTimestamp(final long timestamp);  }
@Test public void testDecode() { final int expectedTimestamp = 0; final Date date = DateConverter.decode(expectedTimestamp); assertEquals(new Date(0), date); }