assertFalse(ar.isAllowed(new URI("https://incubator.apache.org/test")));
}
@Test
public void subDomainsTest() throws Exception{
IAccessRequest ar = new AccessRequestImpl();
ar.setOrigin("http://apache.org");
ar.setSubdomains(true);
assertTrue(ar.isAllowed(new URI("http://incubator.apache.org")));
assertTrue(ar.isAllowed(new URI("http://www.apache.org")));
assertFalse(ar.isAllowed(new URI("http://apache.org.com")));
}