@Test
  public void testKrfIds() {
    DiskInitFile dif =
        new DiskInitFile("testKrfIds", mockedDiskStoreImpl, false, Collections.emptySet());
    assertThat(dif.hasKrf(1)).isFalse();
    dif.cmnKrfCreate(1);
    assertThat(dif.hasKrf(1)).isTrue();
    assertThat(dif.hasKrf(2)).isFalse();
    dif.cmnKrfCreate(2);
    assertThat(dif.hasKrf(2)).isTrue();
    dif.createRegion(mockDiskRegionView);
    dif.forceCompaction();
    dif.close();

    dif = new DiskInitFile("testKrfIds", mockedDiskStoreImpl, true, Collections.emptySet());
    assertThat(dif.hasKrf(1)).isTrue();
    assertThat(dif.hasKrf(2)).isTrue();
    dif.cmnCrfDelete(1);
    assertThat(dif.hasKrf(1)).isFalse();
    assertThat(dif.hasKrf(2)).isTrue();
    dif.cmnCrfDelete(2);
    assertThat(dif.hasKrf(2)).isFalse();
    dif.createRegion(mockDiskRegionView);
    dif.forceCompaction();
    dif.close();

    dif = new DiskInitFile("testKrfIds", mockedDiskStoreImpl, true, Collections.emptySet());
    assertThat(dif.hasKrf(1)).isFalse();
    assertThat(dif.hasKrf(2)).isFalse();
    dif.destroy();
  }
Test the behavior of canonical ids in the init file.
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DiskInitFileJUnitTest.java