### Question:
OAuthSpec { public OAuthSpec(Element element, Uri base) throws SpecParserException { serviceMap = Maps.newHashMap(); NodeList services = element.getElementsByTagName("Service"); for (int i=0; i < services.getLength(); ++i) { Node node = services.item(i); if (node.getNodeType() == Node.ELEMENT_NODE) { parseService((Element)node, base); } } } OAuthSpec(Element element, Uri base); Map<String, OAuthService> getServices(); @Override String toString();  }### Answer:
@Test public void testOAuthSpec() throws Exception { String xml = "<OAuth><Service>" + "<Request url='http: "<Access url='http: "<Authorization url='http: "</Service></OAuth>"; OAuthSpec oauth = new OAuthSpec(XmlUtil.parse(xml), SPEC_URL); assertEquals(1, oauth.getServices().size()); }