builder.setContent("response");
fetcher.response = builder.create();
RequestPipeline pipeline = new DefaultRequestPipeline(fetcher, cache, oauth, oauth2,
new DefaultResponseRewriterRegistry(null, null), new NoOpInvalidationService(),
new HttpResponseMetadataHelper());
HttpResponse response = pipeline.execute(request);
// Verify time is current time instead of expired
assertEquals(DateUtil.formatRfc1123Date(1000L * time), response.getHeader("Date"));
assertEquals(roundToSeconds(100000 - 1), roundToSeconds(response.getCacheTtl() - 1));