@VisibleForTesting
  static void cleanupSharedCacheUploadPolicies(Configuration conf) {
    Job.setArchiveSharedCacheUploadPolicies(conf, Collections.emptyMap());
    Job.setFileSharedCacheUploadPolicies(conf, Collections.emptyMap());
  }
@Test
  public void testCleanupSharedCacheUploadPolicies() {
    Configuration config = new Configuration();
    Map<String, Boolean> archivePolicies = new HashMap<>();
    archivePolicies.put("archive1", true);
    archivePolicies.put("archive2", true);
    Job.setArchiveSharedCacheUploadPolicies(config, archivePolicies);
    Map<String, Boolean> filePolicies = new HashMap<>();
    filePolicies.put("file1", true);
    filePolicies.put("jar1", true);
    Job.setFileSharedCacheUploadPolicies(config, filePolicies);
    Assert.assertEquals(
        2, Job.getArchiveSharedCacheUploadPolicies(config).size());
    Assert.assertEquals(
        2, Job.getFileSharedCacheUploadPolicies(config).size());
    JobImpl.cleanupSharedCacheUploadPolicies(config);
    Assert.assertEquals(
        0, Job.getArchiveSharedCacheUploadPolicies(config).size());
    Assert.assertEquals(
        0, Job.getFileSharedCacheUploadPolicies(config).size());
  }