### Question:
OAuthSpec { public Map<String, OAuthService> getServices() { return Collections.unmodifiableMap(serviceMap); } OAuthSpec(Element element, Uri base); Map<String, OAuthService> getServices(); @Override String toString();  }### Answer:
@Test public void testOAuthSpec_noservice() throws Exception { String xml = "<OAuth/>"; OAuthSpec oauth = new OAuthSpec(XmlUtil.parse(xml), SPEC_URL); assertEquals(0, oauth.getServices().size()); }