@Test
public void testAsLocalDateTime() {

  LocalDateTime dateTime = LocalDateTime.now();
  long packed = pack(dateTime.toLocalDate(), dateTime.toLocalTime());
  LocalDateTime upacked = asLocalDateTime(packed);
  assertEquals(dateTime.getDayOfYear(), upacked.getDayOfYear());
  assertEquals(dateTime.getHour(), upacked.getHour());
  assertEquals(dateTime.getMinute(), upacked.getMinute());
  assertEquals(dateTime.getSecond(), upacked.getSecond());
}