@Test
public void testIsJobFolderMatch() {

  Path filePath1 = new Path("/abc/def/application_1541469337545_0024");
  Path filePath2 = new Path("/abc/def/job2");
  String regex1 = "^application_.*";
  String regex2 = "^job.*";
  assertTrue(HdfsUtils.isJobFolder(filePath1, regex1));
  assertTrue(HdfsUtils.isJobFolder(filePath2, regex2));
}