@Test
public void testDecode() throws Exception {

    long time = System.currentTimeMillis();
    byte[] timeBytes = ByteBuffer.allocate(8).putLong(time).array();
    DateTimeCodec codec = new DateTimeCodec();
    Assert.assertEquals(time, codec.decode(timeBytes, 64).getTime(), 0);
}