private void cleanUpRegion(Region r) {
    if (r != null && !r.getCache().isClosed() && !r.isDestroyed()
        && r.getCache().getDistributedSystem().isConnected()) {
      cache = r.getCache();
      distSys = cache.getDistributedSystem();
      r.localDestroyRegion();
    }
  }
Ensure that the RegionFactory set methods mirrors those found in RegionAttributes
geode-core/src/integrationTest/java/org/apache/geode/cache/RegionFactoryJUnitTest.java