GlobPatternRestrictionFilter extends BaseOriginRestrictionFilter { @Override public boolean matches(URL url) { return globMatcher.test(url.toExternalForm()); } protected  GlobPatternRestrictionFilter(String globPattern, OriginMatchResults originMatchResults); @Override boolean matches(URL url);  }
@Test public void testGlobPattern() throws Exception { GlobPatternRestrictionFilter allowExampleComHttpsFilter = new GlobPatternRestrictionFilter("https: assertTrue(allowExampleComHttpsFilter.matches(new URL("https: assertTrue(allowExampleComHttpsFilter.matches(new URL("https: assertFalse(allowExampleComHttpsFilter.matches(new URL("http: assertFalse(allowExampleComHttpsFilter.matches(new URL("http: }