### Question:
OzoneFSUtils { public static boolean isValidName(String src) { if (!src.startsWith(Path.SEPARATOR)) { return false; } String[] components = StringUtils.split(src, '/'); for (int i = 0; i < components.length; i++) { String element = components[i]; if (element.equals(".") || (element.contains(":")) || (element.contains("/") || element.equals(".."))) { return false; } if (element.isEmpty() && i != components.length - 1 && i != 0) { return false; } } return true; } private  OzoneFSUtils(); static String pathToKey(Path path); static String getParent(String keyName); static String getImmediateChild(String descendant, String ancestor); static String addTrailingSlashIfNeeded(String key); static boolean isFile(String keyName); static boolean isValidName(String src);  }### Answer:
@Test public void testPaths() { Assert.assertTrue(OzoneFSUtils.isValidName("/a/b")); Assert.assertFalse(OzoneFSUtils.isValidName("../../../a/b")); Assert.assertFalse(OzoneFSUtils.isValidName("/./.")); Assert.assertFalse(OzoneFSUtils.isValidName("/:/")); Assert.assertFalse(OzoneFSUtils.isValidName("a/b")); Assert.assertFalse(OzoneFSUtils.isValidName("/a:/b")); Assert.assertFalse(OzoneFSUtils.isValidName("/a }