public static Resource createTestRevisitResource(String timestamp, int len, boolean withHeader) throws IOException {
TestWARCRecordInfo recinfo = TestWARCRecordInfo.createRevisitHttpResponse("text/html", len, withHeader);
recinfo.setCreate14DigitDateFromDT14(timestamp);
TestWARCReader ar = new TestWARCReader(recinfo);
WARCRecord rec = ar.get(0);
WarcResource resource = new WarcResource(rec, ar);
resource.parseHeaders();
return resource;
}