.addHeader("h2", "v2").addHeader("Cache-Control", "private,no-store,max-age=10")
.addHeader("Expires", "123").create();
HttpServletResponse servletResponse = EasyMock.createMock(HttpServletResponse.class);
HttpServletResponseRecorder recorder = new HttpServletResponseRecorder(servletResponse);
long testStartTime = fakeTime.currentTimeMillis();
ServletUtil.copyToServletResponseAndOverrideCacheHeaders(response, recorder);
assertEquals(200, recorder.getHttpStatusCode());
assertEquals("response string", recorder.getResponseAsString());
assertEquals("v1", recorder.getHeader("h1"));
assertEquals("v2", recorder.getHeader("h2"));