### Question:
ZkPath { public static String getFilename(String path) { if (path == null) { return null; } String[] tokens = path.split("/"); if (tokens == null) { return null; } return tokens[tokens.length - 1]; }  static String append(String... parts); static String getFilename(String path); static boolean isHidden(String path); static List<String> filterOutHiddenPaths(List<String> paths);  }### Answer:
@Test public void testGetFilename() { assertEquals("c", ZkPath.getFilename("/a/b/c")); assertEquals("b", ZkPath.getFilename("/a/b/")); }