@VisibleForTesting
    List<Path> getShipFiles() {
        return shipFiles;
    }
@Test
    void testShipFiles() throws IOException {
        String hdfsDir = "hdfs:///flink/hdfs_dir";
        String hdfsFile = "hdfs:///flink/hdfs_file";
        File libFile = Files.createTempFile(temporaryFolder, "libFile", ".jar").toFile();
        File libFolder =
                Files.createTempDirectory(temporaryFolder, UUID.randomUUID().toString()).toFile();
        final org.apache.hadoop.conf.Configuration hdConf =
                new org.apache.hadoop.conf.Configuration();
        hdConf.set(
                MiniDFSCluster.HDFS_MINIDFS_BASEDIR, temporaryFolder.toAbsolutePath().toString());
        try (final MiniDFSCluster hdfsCluster = new MiniDFSCluster.Builder(hdConf).build()) {
            final org.apache.hadoop.fs.Path hdfsRootPath =
                    new org.apache.hadoop.fs.Path(hdfsCluster.getURI());
            hdfsCluster.getFileSystem().mkdirs(new org.apache.hadoop.fs.Path(hdfsDir));
            hdfsCluster.getFileSystem().createNewFile(new org.apache.hadoop.fs.Path(hdfsFile));

            Configuration flinkConfiguration = new Configuration();
            flinkConfiguration.set(
                    YarnConfigOptions.SHIP_FILES,
                    Arrays.asList(
                            libFile.getAbsolutePath(),
                            libFolder.getAbsolutePath(),
                            hdfsDir,
                            hdfsFile));
            final YarnConfiguration yarnConfig = new YarnConfiguration();
            yarnConfig.set(
                    CommonConfigurationKeysPublic.FS_DEFAULT_NAME_KEY, hdfsRootPath.toString());
            YarnClusterDescriptor descriptor =
                    createYarnClusterDescriptor(flinkConfiguration, yarnConfig);
            assertThat(descriptor.getShipFiles())
                    .containsExactly(
                            getPathFromLocalFile(libFile),
                            getPathFromLocalFile(libFolder),
                            new Path(hdfsDir),
                            new Path(hdfsFile));
        }
    }