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