public boolean matches(CharSequence s) {
    return compiled.matcher(s).matches();
  }
@Test
  public void testStandardGlob() {
    PathGlobPattern g = new PathGlobPattern("a/*");
    assertTrue(g.matches("a/as"));
    assertFalse(g.matches("a/asd/b"));
    assertFalse(g.matches("a/asd/ss/b"));

    g = new PathGlobPattern("a/{bb,cc}/d");
    assertTrue(g.matches("a/bb/d"));
    assertTrue(g.matches("a/cc/d"));
    assertFalse(g.matches("a/cc/bb/d"));
    assertFalse(g.matches("a/d"));
  }