private Region createOffHeapRegion(final String name, final DataPolicy dataPolicy) {
    return getCache().createRegionFactory().setOffHeap(true).setDataPolicy(dataPolicy).create(name);
  }
Creates an off-heap region.

@param name a region name.
@param dataPolicy a data policy.

@return the newly created region.
geode-core/src/distributedTest/java/org/apache/geode/management/OffHeapManagementDUnitTest.java