private int getRetryCount(final Retry retry) {
      int retryCount = Retry.DEFAULT;

      if (retry != null) {
        retryCount = retry.value();
      }

      return retryCount;
    }
Implementation of RetryRule for test methods annotated with Retry
geode-junit/src/main/java/org/apache/geode/test/junit/rules/RetryRule.java