recinfo.setCreate14DigitDateFromDT14(timestamp);
if (uri != null) recinfo.setUrl(uri);
TestWARCReader ar = new TestWARCReader(recinfo);
WARCRecord rec = ar.get(0);
WarcResource resource = new WarcResource(rec, ar);
resource.parseHeaders();
return resource;
}
public static Resource createTestHtmlResource(String timestamp, byte[] payloadBytes) throws IOException {
// by passing null to uri, default "http://test.example.com/" will be used.
return createTestHtmlResource(null, timestamp, payloadBytes);