@Test
public void testPatternFromGlob() {

    assertEquals("^abc$", StringUtils.patternFromGlob("abc"));
    assertEquals("^abc.*$", StringUtils.patternFromGlob("abc*"));
    assertEquals("^abc.$", StringUtils.patternFromGlob("abc?"));
    assertEquals("^.*abc.$", StringUtils.patternFromGlob("*abc?"));
    assertEquals("^abc\\.abc:.*$", StringUtils.patternFromGlob("abc.abc:*"));
    assertEquals("^ab\\[a-c]c$", StringUtils.patternFromGlob("ab[a-c]c"));
    assertEquals("^ab.*\\.\\(\\)\\^\\$c$", StringUtils.patternFromGlob("ab*.()^$c"));
    assertEquals("^abc\\\\test\\\\$", StringUtils.patternFromGlob("abc\\test\\"));
    assertEquals("^ab\\{\\|c\\+$", StringUtils.patternFromGlob("ab{|c+"));
    assertEquals("^\\^\\$\\[\\(\\)\\\\\\+\\{\\..*.\\|$", StringUtils.patternFromGlob("^$[()\\+{.*?|"));
}