private static void addResourceInstsToSet(final File archiveFile,
      final Set<ResourceInst> resourceInsts) throws IOException {
    StatArchiveReader reader =
        new StatArchiveReader(new File[] {archiveFile}, new StatSpec[] {}, true);

    for (final ResourceInst o : (Iterable<ResourceInst>) reader.getResourceInstList()) {
      resourceInsts.add(o);
    }
  }
final File expectedStatArchiveFile = new File(TestUtil.getResourcePath(getClass(),
"StatArchiveWriterReaderJUnitTest_" + this.testName.getMethodName() + "_expected.gfs"));
geode-junit/src/main/java/org/apache/geode/internal/statistics/StatUtils.java