@Test
  public void testGetStatMonitorHandlerAfterClose() {
    sampleCollector.close();
    try {
      /* StatMonitorHandler handler = */ SampleCollector.getStatMonitorHandler();
      fail(
          "getStatMonitorHandler should throw IllegalStateException when SampleCollector is closed");
    } catch (IllegalStateException expected) {
      // passed
    }
  }
Unit tests for {@link SampleCollector}.

@since GemFire 7.0
geode-core/src/test/java/org/apache/geode/internal/statistics/SampleCollectorTest.java