@Test
  public void testRemoveNonExistent() throws Exception {
    List<CacheLifecycleCallback> cacheCreatedCallbacks = new ArrayList<>();
    List<CacheLifecycleCallback> cacheClosedCallbacks = new ArrayList<>();
    TestCacheLifecycleListener listener =
        new TestCacheLifecycleListener(cacheCreatedCallbacks, cacheClosedCallbacks);
    GemFireCacheImpl.removeCacheLifecycleListener(listener);
  }
Tests notifications of CacheLifecycleListener from GemFireCacheImpl.
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/CacheLifecycleListenerJUnitTest.java