assertEquals(newCapacity, bb.capacity());
<BUG>assertEquals(0, this.reservoir.buffers.size());
</BUG>
this.reservoir.putBuffer(ByteBuffer.allocate(maxByteBufferSizeToCache * 2));
<BUG>assertEquals(0, this.reservoir.buffers.size());
</BUG>
for (int i = 0; i < maxToCache; i++) {
this.reservoir.putBuffer(ByteBuffer.allocate(initialByteBufferSize));
}
<BUG>assertEquals(maxToCache, this.reservoir.buffers.size());
</BUG>
}

assertEquals(newCapacity, bb.capacity());
assertEquals(0, this.reservoir.getQueueSize());
this.reservoir.putBuffer(ByteBuffer.allocate(maxByteBufferSizeToCache * 2));
assertEquals(0, this.reservoir.getQueueSize());
for (int i = 0; i < maxToCache; i++) {
this.reservoir.putBuffer(ByteBuffer.allocate(initialByteBufferSize));
}
assertEquals(maxToCache, this.reservoir.getQueueSize());
}
