ZkUtils { static String basename(String path) { return path.substring(path.lastIndexOf(PATH_SEP) + 1); } private  ZkUtils();   }
@Test public void testBasename() throws Exception { assertEquals(basename("single"), "single"); assertEquals(basename("/full/path"), "path"); }