@Test
public void remove() {

  int size = 100;
  byte[] expectedBytes = new byte[size];
  random.nextBytes(expectedBytes);
  doReturn(buffer).when(pointer).getOffHeapByteBuffer();
  doReturn(expectedBytes).when(buffer).remove(pointer);
  byte[] actualBytes = bufferStore.remove(pointer);
  assertEquals(expectedBytes, actualBytes);
}