### Question:
Utilities { public static boolean isValidRestrictedDirectoryName(String name) { return isValidRestrictedDirectoryName(name, true); }  static byte[] parseBase64(String encoded, String paramName); static boolean isValidDirectoryName(String name); static boolean isValidRestrictedDirectoryName(String name); static Object createAnyInstance(Class<?> confClass,
                                           String className, RequestContext metaData); static Object createAnyInstance(String className); static void byteArrayToOctalString(byte[] bytes, StringBuilder sb); static String maskNonPrintables(String input); static FragmentMetadata parseFragmentMetadata(RequestContext context); static boolean aggregateOptimizationsSupported(RequestContext requestContext); static boolean implementsInterface(String className, Class<?> iface); static boolean isFragmenterCacheEnabled(); static String absoluteDataPath(String dataSource); static boolean isSecurityEnabled(Configuration configuration); static String rightTrimWhiteSpace(String s); static String getHost(String uri); static final Pattern SCHEME_PATTERN; static final Pattern NON_HOSTNAME_CHARACTERS; }### Answer:
@Test public void invalidRestrictedDirectoryName() { assertFalse(Utilities.isValidRestrictedDirectoryName(null)); assertFalse(Utilities.isValidRestrictedDirectoryName("\0")); assertFalse(Utilities.isValidRestrictedDirectoryName("a/a")); assertFalse(Utilities.isValidRestrictedDirectoryName(".")); assertFalse(Utilities.isValidRestrictedDirectoryName("..")); assertFalse(Utilities.isValidRestrictedDirectoryName("abc ac")); assertFalse(Utilities.isValidRestrictedDirectoryName("abc;ac")); assertFalse(Utilities.isValidRestrictedDirectoryName("\\")); assertFalse(Utilities.isValidRestrictedDirectoryName("a,b")); }
@Test public void validRestrictedDirectoryName() { assertTrue(Utilities.isValidRestrictedDirectoryName("pxf")); assertTrue(Utilities.isValidRestrictedDirectoryName("\uD83D\uDE0A")); }