"</HEAD>",
"<BODY>",
"<H1>Fake response</H1>"
};
AbstractPluggableHTTPManager manager = createTestInstance();
HTTPResponseAccessor respA =
performRequest(manager, fakeResponse,
HTTPRequestType.GET, null);
// sleep for 1.2 seconds. This should give an age of 1 second due to
// the conservative nature of the age calculation. This will be added
// to the age header in the response and should exceed the timeout
// set for this cached entry.
Thread.sleep(1200);
HTTPResponseAccessor respB =
performRequest(manager, fakeResponse,
HTTPRequestType.GET, null);
assertTrue("The content should be the same",
equals(respA.getResponseStream(), respB.getResponseStream()));
assertFalse("The server used up all of the transactions.",
serverMock.hasTransactions());
}