@BenchmarkOptions(benchmarkRounds = 3, warmupRounds = 1)
public void testRandomRead() throws Exception {
Random generator = new Random();
for (int i = 0; i < 1000; i++) {
int n = generator.nextInt(inserts);
Location read = locations.get(n);
String expected = "" + n;
assertEquals(expected, new String(journal.read(read, Journal.ReadType.ASYNC), "UTF-8").substring(0, expected.length()));
}
}