@Test
  public void failingTestShouldFailOneTimeWhenRepeatIsTwo() {
    Result result = TestRunner.runTest(FailingTestShouldFailOneTimeWhenRepeatIsTwo.class);

    assertThat(result.wasSuccessful()).isFalse();

    List<Failure> failures = result.getFailures();
    assertThat(failures.size()).as("Failures: " + failures).isEqualTo(1);

    Failure failure = failures.get(0);
    assertThat(failure.getException()).isExactlyInstanceOf(AssertionError.class)
        .hasMessage(ASSERTION_ERROR_MESSAGE);
    assertThat(FailingTestShouldFailOneTimeWhenRepeatIsTwo.count).isEqualTo(1);
  }
Characterizes the behavior but is not a requirement for {@code RepeatRule}.
geode-junit/src/test/java/org/apache/geode/test/junit/rules/RepeatRuleTest.java