@Test
    void require_that_serialization_and_deserialization_retain_data() throws IOException {
        PredicateIndexBuilder builder = new PredicateIndexBuilder(10);
        builder.indexDocument(1, Predicate.fromString("country in ['no', 'se'] and gender in ['male']"));
        builder.indexDocument(0x3fffffe, Predicate.fromString("country in ['no'] and gender in ['female']"));
        PredicateIndex index = builder.build();
        assertSerializationDeserializationMatches(
                index, PredicateIndex::writeToOutputStream, PredicateIndex::fromInputStream);
    }
@author <a href="mailto:magnarn@yahoo-inc.com">Magnar Nedland</a>
@author bjorncs
predicate-search/src/test/java/com/yahoo/search/predicate/PredicateIndexTest.java