@Test
public void usedMemory() {

  long size = 100;
  bufferStore.buffers = new OffHeapByteBuffer[]{buffer};
  doReturn(size).when(buffer).usedMemory();
  long actualSize = bufferStore.usedMemory();
  assertEquals(size, actualSize);
}