@SuppressWarnings({"rawtypes", "deprecation"})
  @Override
  protected RegionFactory<?, ?> defineRegionFactory() {
    return new RegionFactory().setPartitionAttributes(definePartitionAttributes()).setOffHeap(true);
  }
Tests PartitionedRegion DataStore currentAllocatedMemory operation.

@since Geode 1.0
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/PRDataStoreMemoryOffHeapJUnitTest.java