private void verifyRegionAndDiskStoreAttributes(boolean autoCompact, long maxOplogSizeInBytes,
      int bytesThreshold, int timeInterval) {
    DiskStore diskStore = cache.findDiskStore(diskStoreName);

    assertThat(diskStore.getAutoCompact()).isEqualTo(autoCompact);

    int expectedDiskDirsCount = diskDirs.length;
    int actualDiskDirsCount = diskStore.getDiskDirs().length;
    assertThat(actualDiskDirsCount).isEqualTo(expectedDiskDirsCount);

    int[] expectedDiskDirSizes = diskDirSizes;
    if (expectedDiskDirSizes == null) {
      expectedDiskDirSizes = new int[expectedDiskDirsCount];
      Arrays.fill(expectedDiskDirSizes, Integer.MAX_VALUE);
    }

    int[] actualDiskDirSizes = diskStore.getDiskDirSizes();
    for (int i = 0; i < expectedDiskDirsCount; i++) {
      assertThat(actualDiskDirSizes[i]).isEqualTo(expectedDiskDirSizes[i]);
    }

    assertThat(diskStore.getDiskUsageWarningPercentage())
        .isEqualTo(DiskStoreFactory.DEFAULT_DISK_USAGE_WARNING_PERCENTAGE);
    assertThat(diskStore.getDiskUsageCriticalPercentage())
        .isEqualTo(DiskStoreFactory.DEFAULT_DISK_USAGE_CRITICAL_PERCENTAGE);
    assertThat(diskStore.getMaxOplogSize()).isEqualTo(maxOplogSizeInBytes / (1024 * 1024));
    assertThat(diskStore.getQueueSize()).isEqualTo(bytesThreshold);

    if (timeInterval != -1) {
      assertThat(diskStore.getTimeInterval()).isEqualTo(timeInterval);
    } else {
      assertThat(diskStore.getTimeInterval()).isEqualTo(DiskStoreFactory.DEFAULT_TIME_INTERVAL);
    }
  }
Extracted and exploded {@code testDiskRegDWAttrbts} from {@link DiskRegionJUnitTest}.
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DiskRegionAttributesIntegrationTest.java