@Test
  public void markInitializedThrowsCacheClosedExceptionWhenInitFileClosedAndParentIsClosedOrClosing() {
    markInitializedTestSetup();
    when(mockedDiskStoreImpl.isClosed()).thenReturn(Boolean.TRUE);

    DiskInitFile diskInitFile =
        new DiskInitFile("testThrows", mockedDiskStoreImpl, false, Collections.emptySet());
    diskInitFile.close();

    assertThatThrownBy(() -> diskInitFile.markInitialized(mockDiskRegionView)).isInstanceOf(
        CacheClosedException.class);
  }
Test the behavior of canonical ids in the init file.
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DiskInitFileJUnitTest.java