StringUtils { public static boolean containsMatchCharacter(String name) { return name.indexOf('*') != -1 || name.indexOf('?') != -1; }  static boolean isRegexMetaCharacter(char regexChar); static boolean containsMatchCharacter(String name); static String patternFromGlob(String glob); static boolean containsControlCharacter(String value); static boolean requestUriMatch(String uri, Set<String> uriSet,
            List<Pattern> uriList);  }
@Test public void testContainsMatchCharacter() { assertTrue(StringUtils.containsMatchCharacter("abc*")); assertTrue(StringUtils.containsMatchCharacter("*abc")); assertTrue(StringUtils.containsMatchCharacter("abc*abc")); assertTrue(StringUtils.containsMatchCharacter("*")); assertTrue(StringUtils.containsMatchCharacter("?abc")); assertTrue(StringUtils.containsMatchCharacter("abc?")); assertTrue(StringUtils.containsMatchCharacter("abc?abc")); assertTrue(StringUtils.containsMatchCharacter("?")); assertFalse(StringUtils.containsMatchCharacter("abc")); assertFalse(StringUtils.containsMatchCharacter("a.bc[ab]")); assertFalse(StringUtils.containsMatchCharacter("a(ab)[ab]")); assertFalse(StringUtils.containsMatchCharacter("domain:role.rolename")); }