@Override
      public void run2() throws CacheException {
        disconnectFromDS();
        Properties properties = new Properties();
        properties.put(OFF_HEAP_MEMORY_SIZE, "2m");
        getSystem(properties);

        GemFireCacheImpl cache = (GemFireCacheImpl) getCache();
        RegionFactory regionFactory = cache.createRegionFactory(RegionShortcut.PARTITION);
        regionFactory.setOffHeap(true);
        Region region = regionFactory.create(regionName);

        assertNotNull("Region is null", region);
        assertNotNull("Cache does not contain region", cache.getRegion(regionName));
      }
Asserts that creating a region on two members, with one being off-heap with local storage and
the other being on-heap without local storage, will not cause an exception.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/DistrbutedRegionProfileOffHeapDUnitTest.java