WARCRecordInfo recinfo = new TestWARCRecordInfo(
TestWARCRecordInfo.buildHttpResponseBlock("200 OK",
"text/plain", payload.getBytes("UTF-8"), true));
recinfo.setMimetype("text/plain");
TestARCReader ar = new TestARCReader(recinfo);
ARCRecord rec = ar.get(0);
ArcResource res = new ArcResource(rec, ar);
res.parseHeaders();
assertEquals("statusCode", 200, res.getStatusCode());
assertEquals("content-type", "text/plain", res.getHeader("Content-Type"));