private void doStealTimeTest(String fileInputPath, int expectedStatValue) {
    LinuxProcFsStatistics.refreshSystem(localStats, fileInputPath,
        LinuxSystemStatsTest.class.getResource("mockNetstatStats.txt").getFile());

    Statistics[] statistics = getStatisticsManager().findStatisticsByTextId("LinuxSystemStats");
    waitForExpectedStatValue(statistics[0], "cpuSteal", expectedStatValue, 20000, 10);
  }
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