@Override
      public boolean done() {
        GemFireCacheImpl cache = GemFireCacheImpl.getInstance();
        bean = service.getDistributedRegionMXBean(regionName);

        boolean done = (bean != null && bean.getMemberCount() == expectedMembers);
        return done;
      }
Utility Method to obtain DistributedRegionMXBean proxy reference for a particular region

@param regionName name of the region
@param expectedMembers the number of members expected to be hosting the region
@return a reference to DistributedRegionMXBean
geode-dunit/src/main/java/org/apache/geode/management/MBeanUtil.java