@After
  public void tearDown() throws Exception {
    StatisticsTypeFactoryImpl.clear();
    if (statisticsFactory != null) {
      statisticsFactory.close();
    }
  }
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