@Test
  public void testPassWithExpectedProblem() throws Exception {
    final String goldenString =
        "Begin " + name() + ".main" + "\n" + "Press Enter to continue." + "\n" + "\n"
            + expectedProblemLines()[problemLine] + "\n" + "End " + name() + ".main" + "\n";
    GoldenTestCase.debug(goldenString, "GOLDEN");

    final ProcessWrapper process = createProcessWrapper(new ProcessWrapper.Builder(), getClass());
    process.execute(createProperties());
    process.waitForOutputToMatch("Begin " + name() + "\\.main");
    process.waitForOutputToMatch("Press Enter to continue\\.");
    process.sendInput();
    process.waitForOutputToMatch("End " + name() + "\\.main");
    process.waitFor();

    assertOutputMatchesGoldenFile(process.getOutput(), goldenString);
  }
Abstract test case for golden testing framework. This provides basis for unit tests which involve
an example that is expected to always pass.
geode-junit/src/main/java/org/apache/geode/test/golden/PassWithExpectedProblemTestCase.java