@Override
    public Object call() throws Exception {
      InternalResourceManager irm = getCache().getInternalResourceManager();
      Set<ResourceListener<?>> listeners = irm.getResourceListeners(ResourceType.OFFHEAP_MEMORY);
      for (final ResourceListener<?> l : listeners) {
        if (l instanceof TestMemoryThresholdListener) {
          ((TestMemoryThresholdListener) l).resetThresholdCalls();
        }
      }
      return null;
    }
Tests the Off-Heap Memory thresholds of {@link ResourceManager}

@since Geode 1.0
geode-core/src/distributedTest/java/org/apache/geode/cache/management/MemoryThresholdsOffHeapDUnitTest.java