@Override
    public CheckpointStateToolset createTaskOwnedCheckpointStateToolset() {
        if (fileSystem instanceof PathsCopyingFileSystem) {
            return new FsCheckpointStateToolset(
                    taskOwnedStateDirectory, (PathsCopyingFileSystem) fileSystem);
        } else {
            return new NotDuplicatingCheckpointStateToolset();
        }
    }
@Test
    void testNotDuplicationCheckpointStateToolset() throws Exception {
        CheckpointStorageAccess checkpointStorage = createCheckpointStorage(randomTempPath(), true);
        assertThat(checkpointStorage.createTaskOwnedCheckpointStateToolset())
                .isInstanceOf(NotDuplicatingCheckpointStateToolset.class);
    }