StringURIResolver implements URIResolver { public StringURIResolver put(final String href, final String document) { documents.put(href, document); return this; }  StringURIResolver put(final String href, final String document); Source resolve(final String href, final String base);  }
@Test public void testPut() { assertEquals(stringURIResolver.documents.get("uri"),"document"); }