private List<String> readLines(final BufferedReader reader) throws IOException {
    final List<String> listOfLines = new ArrayList<>();
    String line = null;
    do {
      line = reader.readLine();
      listOfLines.add(line);
    } while (line != null);
    return listOfLines;
  }
Compares test output to golden text file.

@since GemFire 4.1.1
geode-junit/src/main/java/org/apache/geode/test/golden/GoldenComparator.java