@After
  public void tearDown() {
    if (gemFireCacheImpl != null) {
      gemFireCacheImpl.close();
    }
    if (meterRegistry != null) {
      meterRegistry.close();
    }
  }
Unit tests for closing {@link GemFireCacheImpl}.
geode-core/src/test/java/org/apache/geode/internal/cache/GemFireCacheImplCloseTest.java