@Test
public void update() {

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