// reading the data single threaded
initiator.read(target, readData, address, readData.capacity());
// closing the session
initiator.closeSession(target);
// correctness check
if (!Arrays.equals(writeData.array(), readData.array())) { throw new IllegalStateException("Data read must be equal to the data written"); }
}