### Question:
ResourceValidationUtils { public static boolean isValidLibraryName(String libraryName) { return validate(libraryName, false); }  static boolean isValidResourceName(String resourceName); static boolean isValidLibraryName(String libraryName); static boolean isValidLibraryName(String libraryName, boolean allowSlash); static boolean isValidResourceId(String resourceId); static boolean isValidViewResource(String resourceId); static boolean isValidContractName(String contractName); static boolean isValidLocalePrefix(String localePrefix); static boolean isValidPath(String path);  }### Answer:
@Test public void testLibraryNames() throws Exception { Assert.assertTrue(ResourceValidationUtils.isValidLibraryName("mylib")); Assert.assertTrue(ResourceValidationUtils.isValidLibraryName("org.apache.myfaces")); Assert.assertTrue(ResourceValidationUtils.isValidLibraryName("some-js-lib")); Assert.assertTrue(ResourceValidationUtils.isValidLibraryName("some_js_lib")); Assert.assertTrue(ResourceValidationUtils.isValidLibraryName("components/panels", true)); Assert.assertFalse(ResourceValidationUtils.isValidLibraryName("components/panels", false)); Assert.assertFalse(ResourceValidationUtils.isValidLibraryName("/mylib")); Assert.assertFalse(ResourceValidationUtils.isValidLibraryName("mylib"+'\t'+"22")); Assert.assertFalse(ResourceValidationUtils.isValidLibraryName("\\mylib")); Assert.assertFalse(ResourceValidationUtils.isValidLibraryName("..")); Assert.assertFalse(ResourceValidationUtils.isValidLibraryName("..", true)); Assert.assertFalse(ResourceValidationUtils.isValidLibraryName("some:js")); Assert.assertFalse(ResourceValidationUtils.isValidLibraryName("some?js")); Assert.assertFalse(ResourceValidationUtils.isValidLibraryName("some&js")); }