@Test
public void store() {

  int size = 100;
  final long expiry = System.currentTimeMillis();
  byte[] expectedBytes = new byte[size];
  random.nextBytes(expectedBytes);
  Pointer pointer = buffer.store(expectedBytes, expiry);
  byte[] actualBytes = buffer.retrieve(pointer);
  assertArrayEquals(expectedBytes, actualBytes);
}