String payloadRecordIdWithBrackets = "<"
+ historyStore().store.get(expectedDigest).get(
A_WARC_RECORD_ID) + ">";
// check the warc records
List<File> warcDirs = warcWriter.calcOutputDirs();
assertEquals(1, warcDirs.size());
String[] warcs = warcDirs.get(0).list();
assertEquals(1, warcs.length);
WARCReader warcReader = WARCReaderFactory.get(new File(warcDirs.get(0), warcs[0]));
Iterator<ArchiveRecord> recordIterator = warcReader.iterator();