@Test
  public void close_closesHeapEvictor() {
    gemFireCacheImpl = gemFireCacheImpl(false);
    HeapEvictor heapEvictor = mock(HeapEvictor.class);
    gemFireCacheImpl.setHeapEvictor(heapEvictor);

    gemFireCacheImpl.close();

    verify(heapEvictor)
        .close();
  }
Unit tests for closing {@link GemFireCacheImpl}.
geode-core/src/test/java/org/apache/geode/internal/cache/GemFireCacheImplCloseTest.java