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

    g = new PathGlobPattern("a/**");
    assertTrue(g.matches("a/as"));
    assertTrue(g.matches("a/asd/b"));
    assertTrue(g.matches("a/asd/ss/b"));
  }