*/
private void assertReadByteWorkingCorrectly(Directory dir, String fileName,
final int contentFileSizeExpected) throws IOException {
IndexInput indexInput = dir.openInput(fileName);
AssertJUnit.assertEquals(contentFileSizeExpected, indexInput.length());
RepeatableLongByteSequence bytesGenerator = new RepeatableLongByteSequence();
for (int i = 0; i < contentFileSizeExpected; i++) {
AssertJUnit.assertEquals(bytesGenerator.nextByte(), indexInput.readByte());
}
indexInput.close();
}