StringUtils { public static boolean containsControlCharacter(String value) { int length = value.length(); for (int i = 0; i < length; i++) { if (value.charAt(i) < ' ') { return true; } } return false; }  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 testContainsControlCharacter() { assertFalse(StringUtils.containsControlCharacter("abcd")); assertFalse(StringUtils.containsControlCharacter("abc td")); assertFalse(StringUtils.containsControlCharacter("abc2345423540908d")); assertFalse(StringUtils.containsControlCharacter("abcd!@#$#@%$$^%&%*()_+==")); assertFalse(StringUtils.containsControlCharacter("abc\\][\\|}{|}d")); assertFalse(StringUtils.containsControlCharacter("abc\":\":\";;';';;d")); assertFalse(StringUtils.containsControlCharacter("ab,./<>?cd")); assertFalse(StringUtils.containsControlCharacter("abcd`~!@#$%^&*()_+-=")); assertTrue(StringUtils.containsControlCharacter("abc\t")); assertTrue(StringUtils.containsControlCharacter("abc\n")); assertTrue(StringUtils.containsControlCharacter("abc\b")); assertTrue(StringUtils.containsControlCharacter("abc\r")); assertTrue(StringUtils.containsControlCharacter("abc\t\r\b\t\n")); }