final URLContent content = contents[0];
contents[0] = null;
return content;
}
});
final HttpUrlConfiguration httpConfig =
new HttpUrlConfiguration(dependencyContextMock);
content = manager.getURLContent(url, null, httpConfig);
// should have the same result
assertEquals("New content is returned", "<p>hello2</p>\n",
toString(content.getInputStream()));
assertEquals(Cacheability.CACHEABLE,