private void checkLineFor(final int lineCount, final String line, final String problem) {
    if (line != null && line.toLowerCase().contains(problem)) {
      if (expectedProblemLines != null && expectedProblemLines.length > 0) {
        for (final String expectedProblemLine : expectedProblemLines) {
          debug("Comparing \" + line + \" against expected \" + this.expectedProblemLines[i] + \"");
          if (compareLines(line, expectedProblemLine)) {
            return;
          }
        }
      }
      // TODO: collect up entire stack trace if there is one (might span multiple lines)
      debug("About to fail because of " + line);
      fail("Actual output contains a problem (warning/error/severe) on line " + lineCount + ": "
          + line);
    }
  }
Compares test output to golden text file.

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