@Test
  public void close_doesNotCloseUserMeterRegistries() {
    meterRegistry = new CompositeMeterRegistry();
    MeterRegistry userRegistry = spy(new SimpleMeterRegistry());
    meterRegistry.add(userRegistry);
    gemFireCacheImpl = gemFireCacheImpl(false);

    gemFireCacheImpl.close();

    assertThat(userRegistry.isClosed())
        .isFalse();
  }
Unit tests for closing {@link GemFireCacheImpl}.
geode-core/src/test/java/org/apache/geode/internal/cache/GemFireCacheImplCloseTest.java