@Override
    public boolean canFastDuplicate(StreamStateHandle stateHandle) throws IOException {
        if (!(stateHandle instanceof FileStateHandle)) {
            return false;
        }
        final Path srcPath = ((FileStateHandle) stateHandle).getFilePath();
        final Path dst = getNewDstPath(srcPath.getName());
        return fs.canCopyPaths(srcPath, dst);
    }
@Test
    void testCanDuplicateNonFileStreamHandle() throws IOException {
        final FsCheckpointStateToolset stateToolset =
                new FsCheckpointStateToolset(
                        new Path("test-path"), new TestDuplicatingFileSystem());

        final boolean canFastDuplicate =
                stateToolset.canFastDuplicate(new ByteStreamStateHandle("test", new byte[] {}));
        assertThat(canFastDuplicate).isFalse();
    }