private void assertOffHeapRegionAttributes() {
    ManagementService service = ManagementService.getExistingManagementService(getCache());
    assertThat(service).isNotNull();

    assertThat(service.isManager()).isTrue();

    RegionMXBean regionBean = service.getLocalRegionMBean(OFF_HEAP_REGION_PATH);
    assertThat(regionBean).isNotNull();

    RegionAttributesData regionData = regionBean.listRegionAttributes();
    assertThat(regionData).isNotNull();

    assertThat(regionData.getOffHeap()).isTrue();
  }
Asserts that the off heap region data is available and enabled.
geode-core/src/distributedTest/java/org/apache/geode/management/OffHeapManagementDUnitTest.java