private <K, V> RegionAttributes<K, V> getBasicAttributes(
      RegionAttributes<K, V> regionAttributes) {
    AttributesFactory<K, V> factory = new AttributesFactory<>(regionAttributes);
    if (!regionAttributes.getDataPolicy().withStorage()) {
      factory.setOffHeap(true);
    }
    return factory.create();
  }
Tests Global Region with ConcurrencyChecksEnabled and OffHeap memory.

@since Geode 1.0
geode-core/src/distributedTest/java/org/apache/geode/cache30/GlobalRegionCCEOffHeapDUnitTest.java