final String ct = "image/gif";
WARCRecordInfo recinfo = TestWARCRecordInfo.createHttpResponse(ct, TestWARCRecordInfo.PAYLOAD_GIF);
TestWARCReader ar = new TestWARCReader(recinfo);
WARCRecord rec = ar.get(0);
Resource payloadResource = new WarcResource(rec, ar);
payloadResource.parseHeaders();
Resource headersResource = payloadResource;
TestServletOutputStream servletOutput = new TestServletOutputStream();
response.setStatus(200);
EasyMock.expect(response.getOutputStream()).andReturn(servletOutput);