@Before
  public void setUp() throws Exception {
    synchronizing = Executors.newSingleThreadExecutor();
    blocking = Executors.newSingleThreadExecutor();
    latch = new CountDownLatch(1);

    cache = mock(InternalCache.class);
    cacheServer = mock(CacheServerImpl.class);
    acceptor = mock(AcceptorImpl.class);
    monitor = mock(MBeanStatsMonitor.class);

    when(cache.getQueryService()).thenReturn(mock(InternalQueryService.class));
    when(acceptor.getStats()).thenReturn(mock(CacheServerStats.class));
  }
JMX and membership should not deadlock on CacheFactory.getAnyInstance.

<p>
GEODE-3407: JMX and membership may deadlock on CacheFactory.getAnyInstance
geode-core/src/test/java/org/apache/geode/management/internal/beans/CacheServerBridgeClientMembershipRegressionTest.java