@Test
  public void unreliableTestWithRaceConditions() {
    count++;
    if (count < 2) {
      assertThat(count).isEqualTo(2); // doomed to fail
    }
  }
Example usage of {@link RetryRule} with global scope.
geode-junit/src/test/java/org/apache/geode/test/junit/rules/examples/RetryRuleExampleTest.java