@Test
  public void testNoGFThreadsRunningPostCacheClose() throws Exception {
    ClientCacheFactory ccf = new ClientCacheFactory();
    GemFireCacheImpl cache = (GemFireCacheImpl) ccf.create();

    SystemFailure.getFailure();

    Thread.sleep(5000);
    // Assert the threads have been started.
    checkThreads(true);

    cache.close();

    Thread.sleep(5000);
    // Assert the threads have been terminated.
    checkThreads(false);
  }
TRAC #49856: Some GemFire Threads not cleaned up in cache close.
geode-core/src/integrationTest/java/org/apache/geode/internal/SystemFailureThreadCleanupRegressionTest.java