@SuppressWarnings("synthetic-access")
      @Override
      public void run2() throws CacheException {
        disconnectFromDS();
        final GemFireCacheImpl cache = (GemFireCacheImpl) getCache();
        final RegionFactory regionFactory = cache.createRegionFactory(RegionShortcut.PARTITION);
        Region region = null;

        try {
          IgnoredException.addIgnoredException("IllegalStateException");
          region = regionFactory.create(regionName);
          fail("Expected exception upon creation with invalid off-heap state");
        } catch (IllegalStateException expected) {
          // An exception is expected.
        } finally {
          removeExceptionTag1("IllegalStateException");
        }

        assertNull("Region is not null", region);
        assertNull("Cache contains region", cache.getRegion(regionName));
      }
Asserts that creating a region on two members, with one member having the region as on-heap and
the other as having the region as off-heap, will cause an exception and the region will not be
created.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/DistrbutedRegionProfileOffHeapDUnitTest.java