Utils { public static String makeLockPath(String zkrootWithSiteId) { Preconditions.checkArgument(StringUtils.isNotBlank(zkrootWithSiteId), "zkrootWithSiteId must not be blank"); return zkrootWithSiteId.toLowerCase() + "/locks"; }  static void closeInputStream(InputStream is); static void sleep(long seconds); static long dateTimeToLong(String date); static long parseMemory(String memory); static Constants.JobType fetchJobType(Map config); static Constants.JobType fetchJobType(Configuration config); static String makeLockPath(String zkrootWithSiteId);  }
@Test public void testMakeLockPath() { String lockpath = Utils.makeLockPath("/apps/mr/jobs/sitdId"); Assert.assertEquals("/apps/mr/jobs/sitdid/locks", lockpath); }
@Test public void testMakeLockPath1() { thrown.expect(IllegalArgumentException.class); Utils.makeLockPath(""); }
@Test public void testMakeLockPath2() { thrown.expect(IllegalArgumentException.class); Utils.makeLockPath(null); }