protected boolean containsStatistics(String instanceName) throws InterruptedException {
      for (StatisticsType statType : allStatistics.keySet()) {
        for (Statistics statistics : allStatistics.get(statType)) {
          if (statistics.getTextId().equals(instanceName)) {
            return true;
          }
        }
      }
      return false;
    }
Integration TestCase for StatSampler.

@since GemFire 7.0
geode-junit/src/main/java/org/apache/geode/internal/statistics/StatSamplerTestCase.java