@Override
      public boolean done() {
        GemFireCacheImpl cache = GemFireCacheImpl.getInstance();
        bean = service.getDistributedLockServiceMXBean(lockServiceName);
        boolean done = (bean != null && bean.getMemberCount() == expectedMembers);
        return done;
      }
Utility Method to obtain DistributedRegionMXBean proxy reference for a particular region

@param lockServiceName name of the lock service
@param expectedMembers the number of members expected to be using the lock service
@return a reference to DistributedLockServiceMXBean
geode-dunit/src/main/java/org/apache/geode/management/MBeanUtil.java