@Test
public void testGlobPattern() throws Exception {

  GlobPatternRestrictionFilter allowExampleComHttpsFilter = new GlobPatternRestrictionFilter("https://example.com/*", OriginMatchResults.ALLOW);
  assertTrue(allowExampleComHttpsFilter.matches(new URL("https://example.com/")));
  assertTrue(allowExampleComHttpsFilter.matches(new URL("https://example.com/foo")));
  assertFalse(allowExampleComHttpsFilter.matches(new URL("http://example.com/")));
  assertFalse(allowExampleComHttpsFilter.matches(new URL("http://not.example.com/")));
}