ioprioClass = ioprioData = 0;
DFSDataInputStream in = (DFSDataInputStream) fs.open(p);
byte[] buffer = new byte[BLOCK_SIZE * 2];
ReadOptions options = new ReadOptions();
options.setIoprio(NativeIO.IOPRIO_CLASS_BE, pri);
in.read(BLOCK_SIZE / 2, buffer, 0, BLOCK_SIZE / 2, options);
if (NativeIO.isAvailable()) {
assertTrue(NativeIO.isIoprioPossible());
assertEquals(NativeIO.IOPRIO_CLASS_BE, ioprioClass);