@Test
public void testGetJobIdTypicalCase() {

  Path filePath1 = new Path(Constants.TONY_CORE_SRC + "test/resources/job1");
  Path filePath2 = new Path(Constants.TONY_CORE_SRC + "test/resources/app2/");
  assertEquals("job1", HdfsUtils.getLastComponent(filePath1.toString()));
  assertEquals("app2", HdfsUtils.getLastComponent(filePath2.toString()));
}