}
public void testInsertManyDocuments() throws Exception {
int iterations = 1000;
for (int i = 0; i < iterations; i++) {
assertTrue(filer.writeRecord(new Key("key" + i), TEST_VALUE));
}
assertTrue(filer.getRecordCount() == iterations);
for (int i = 0; i < iterations; i++) {
assertTrue(filer.deleteRecord(new Key("key" + i)));
}
assertTrue(filer.getRecordCount() == 0);
}