@Test
  public void passesUnused() {
    Result result = TestRunner.runTest(PassesUnused.class);

    assertThat(result.wasSuccessful()).isTrue();
    assertThat(PassesUnused.count).isEqualTo(1);
  }
Unit tests for {@link RetryRule} involving local scope (ie rule affects only the test methods
annotated with {@code @Retry}) with failures due to an {@code Error}.
geode-junit/src/test/java/org/apache/geode/test/junit/rules/RetryRuleLocalWithErrorTest.java