private void initStats() {
    statisticsFactory = new LocalStatisticsFactory(new CancelCriterion() {
      @Override
      public String cancelInProgress() {
        return null;
      }

      @Override
      public RuntimeException generateCancelledException(Throwable e) {
        return null;
      }
    });
  }
Technically a linux only test - the file handling is all mocked up so the test can run on any
host os.
geode-core/src/integrationTest/java/org/apache/geode/internal/statistics/LinuxSystemStatsTest.java