@Test
public void testReadWriteMultiFilterRecord() throws Exception {

    final List<FilterRecord<BloomFilter>> records = generateFilterRecords(100);
    for (FilterRecord<BloomFilter> record : records) {
        record.writeFullyTo(writeRecordChannel);
    }
    try (FilterRecordInputStream<GuavaBloomFilter> stream = new FilterRecordInputStream<>(tempFile.toPath(), factory)) {
        for (FilterRecord<BloomFilter> expectRecord : records) {
            assertThat(stream.nextFilterRecord()).isEqualTo(expectRecord);
        }
        assertThat(stream.nextFilterRecord()).isNull();
    }
}