Ensure Reversed reader has read all the lines
@@ -92,6 +92,7 @@ public void testDataIntegrityWithBufferedReader(final String fileName, final Str
final String lineFromBufferedReader = lineStack.pop();
assertEquals(lineFromBufferedReader, line);
}
+ assertEquals(0, lineStack.size(), "Stack should be empty");
if (fileSystem != null) {
fileSystem.close();
