// Test Expectations
// =====================================================================
final URLContentManagerConfiguration config =
new URLContentManagerConfiguration();
config.setDefaultTimeout(Period.inSeconds(1));
URLContentManager manager = new URLContentManagerImpl(config);
URL url = serverMock.getURL("/blah.txt?foo");
try {
URLContent content = manager.getURLContent(url, null, null);
content.getInputStream();
} catch (InterruptedIOException e) {
assertEquals("Request to '" + url.toExternalForm() +
"' timed out after 1000ms", e.getMessage());
}