### Question:
AbstractHttpCache implements HttpCache { @VisibleForTesting HttpResponseBuilder buildStrictNoCacheHttpResponse(HttpResponse response) { HttpResponseBuilder responseBuilder = new HttpResponseBuilder(); copyHeaderIfPresent("Cache-Control", response, responseBuilder); copyHeaderIfPresent("Pragma", response, responseBuilder); responseBuilder.setRefetchStrictNoCacheAfterMs(refetchStrictNoCacheAfterMs); return responseBuilder; }  HttpResponse getResponse(HttpRequest request); HttpResponse addResponse(HttpRequest request, HttpResponse response); @VisibleForTesting void setRefetchStrictNoCacheAfterMs(long refetchStrictNoCacheAfterMs); HttpResponse removeResponse(HttpRequest request); String createKey(HttpRequest request); @Inject(optional = true) @Named("shindig.cache.http.strict-no-cache-resource.refetch-after-ms")
  static long REFETCH_STRICT_NO_CACHE_AFTER_MS_DEFAULT; }### Answer:
@Test public void buildStrictNoCacheHttpResponse() { HttpResponse response = new HttpResponseBuilder() .setResponseString("result") .addHeader("Cache-Control", "private, max-age=1000") .addHeader("X-Method-Override", "GET") .create(); assertTrue(response.isStrictNoCache()); HttpResponse builtResponse = extendedStrictNoCacheTtlCache .buildStrictNoCacheHttpResponse(response).create(); assertTrue(builtResponse.isStrictNoCache()); assertEquals("", builtResponse.getResponseAsString()); assertEquals("private, max-age=1000", builtResponse.getHeader("Cache-Control")); assertEquals(86400, builtResponse.getRefetchStrictNoCacheAfterMs()); assertFalse(builtResponse.getHeaders().containsKey("Pragma")); assertNull(builtResponse.getHeader("X-Method-Override")); }
@Test public void buildStrictNoCacheHttpResponseWithPragmaHeader() { HttpResponse response = new HttpResponseBuilder() .setResponseString("result") .addHeader("Pragma", "no-cache") .create(); assertTrue(response.isStrictNoCache()); HttpResponse builtResponse = cache .buildStrictNoCacheHttpResponse(response).create(); assertTrue(builtResponse.isStrictNoCache()); assertEquals("", builtResponse.getResponseAsString()); assertNull(builtResponse.getHeader("Cache-Control")); assertEquals("no-cache", builtResponse.getHeader("Pragma")); }