@Test
  public void testRegexEscaping() {
    assertGlobRegexIs("(", "\\(");
    assertGlobRegexIs(".", "\\.");
    assertGlobRegexIs("^", "\\^");
    assertGlobRegexIs("$", "\\$");
    assertGlobRegexIs("+", "\\+");
    assertGlobRegexIs("\\\\", "\\\\");
    assertGlobRegexIs("]", "\\]");
    assertGlobRegexIs(")", "\\)");
    assertGlobRegexIs("}", "\\}");
  }
Tests for {@link PathMatcher} instances created by {@link GlobToRegex}.

@author Colin Decker
jimfs/src/test/java/com/google/common/jimfs/RegexGlobMatcherTest.java