// retured bytes represent the header(encoded in utf-8), terminated by a \r\n\r\n. The content follows this terminator
// we search for this specific byte pattern to locate start of content, then compare it against source ...
Assert.assertTrue(ArcFileReaderTests.compareTo(testRecord.data,0,testRecord.data.length,value.getContent().getReadOnlyBytes(),value.getContent().getOffset(),value.getContent().getCount()) == 0);
NIOHttpHeaders headers = ArcFileItemUtils.buildHeaderFromArcFileItemHeaders(value.getHeaderItems());
// validate metadata
Assert.assertEquals("text/html",headers.findValue(Constants.ARCFileHeader_ARC_MimeType));
Assert.assertEquals(value.getArcFilePos(),testRecord.streamPos);
Assert.assertEquals(value.getArcFileSize(),testRecord.rawSize);
Assert.assertEquals("test-value", headers.findValue("test"));
Assert.assertEquals(value.getArcFileName(),((FileSplit)split).getPath().getName());