### Question:
UserSearchUtils { public static Pattern createLiteralSearchPattern(String text) { Pattern p = createPattern(text, false, CASE_SENSITIVE); return p; }  static Pattern createSearchPattern(String input, boolean caseSensitive); static Pattern createLiteralSearchPattern(String text); static Pattern createStartsWithPattern(String input, boolean allowGlobbing,
			int options); static Pattern createEndsWithPattern(String input, boolean allowGlobbing, int options); static Pattern createContainsPattern(String input, boolean allowGlobbing, int options); static Pattern createPattern(String input, boolean allowGlobbing, int options); static String createPatternString(String input, boolean allowGlobbing); final static String STAR; final static Pattern NON_GLOB_BACKSLASH_PATTERN; }### Answer:
@Test public void testCreateLiteralExactMatchPattern() { Pattern pattern = UserSearchUtils.createLiteralSearchPattern("bob"); assertTrue(pattern.matcher("bob").matches()); assertFalse(pattern.matcher("bbb").matches()); assertFalse(pattern.matcher("Bob").matches()); pattern = UserSearchUtils.createLiteralSearchPattern("b*b"); assertTrue(pattern.matcher("b*b").matches()); assertFalse(pattern.matcher("bob").matches()); assertFalse(pattern.matcher("Bob").matches()); pattern = UserSearchUtils.createLiteralSearchPattern("b?b"); assertTrue(pattern.matcher("b?b").matches()); assertFalse(pattern.matcher("bob").matches()); assertFalse(pattern.matcher("Bob").matches()); }