// Create chunk set
chunk = new HdfsDataFileChunk(fs, fs.getFileStatus(path));
// Read the chunks
for(int offset = 0; offset < numBytes; offset += jumps) {
buffer.clear();
assertEquals(chunk.read(buffer, offset), jumps);
assertEquals(0, ByteUtils.compare(buffer.array(), ByteUtils.copy(randomBytes,
offset,
offset + jumps)));
}