public void okOriginWithSubdomains(){
Element element = new Element("access");
element.setAttribute("origin","http://apache.org");
element.setAttribute("subdomains","true");
AccessEntity accessEntity = new AccessEntity();
accessEntity.fromXML(element);
assertEquals("http://apache.org:80",accessEntity.getOrigin());
assertEquals(true,accessEntity.hasSubDomains());
}
@Test