readBuf.flip();
LOGGER.info("readBuf: " + readBuf);
Assert.assertEquals(DATA_SIZE * COUNT, readBuf.remaining());
IoBuffer expectedBuf = IoBuffer.allocate(DATA_SIZE * COUNT);
for (int i = 0; i < COUNT; i++) {
expectedBuf.limit((i + 1) * DATA_SIZE);
fillWriteBuffer(expectedBuf, i);
}
expectedBuf.position(0);
assertEquals(expectedBuf, readBuf);