@Test
void testWrite_noWrites() {

    ByteBufferPool byteBufferPool = getByteBufferPool();
    PooledByteBufferOutputStream pooledByteBufferOutputStream = new PooledByteBufferOutputStream(
            byteBufferPool,
            2);
    int initialCapacity = pooledByteBufferOutputStream.getPooledByteBuffer().getByteBuffer().capacity();
    PooledByteBuffer pooledByteBuffer = pooledByteBufferOutputStream.getPooledByteBuffer();
    assertThat(pooledByteBuffer.getByteBuffer().capacity())
            .isEqualTo(initialCapacity);
}