@Test
public void freeWithIndex() {

  bufferStore.buffers = new OffHeapByteBuffer[]{buffer};
  bufferStore.availableBuffers = queue;
  doReturn(true).when(queue).add(anyInt());
  doNothing().when(buffer).free();
  bufferStore.free(0);
  verify(buffer).free();
  verify(queue).add(anyInt());
}