@Test
    void requireThatSerializationAndDeserializationRetainDictionary() throws IOException {
        SimpleIndex.Builder builder = new SimpleIndex.Builder();
        builder.insert(KEY, new Posting(DOC_ID, 10));
        builder.insert(KEY, new Posting(DOC_ID + 1, 20));
        builder.insert(KEY, new Posting(DOC_ID + 2, 30));
        builder.insert(KEY + 0xFFFFFF, new Posting(DOC_ID, 100));
        builder.insert(KEY + 0xFFFFFF, new Posting(DOC_ID + 1, 200));
        SimpleIndex index = builder.build();
        assertSerializationDeserializationMatches(index, SimpleIndex::writeToOutputStream, SimpleIndex::fromInputStream);
    }
@author <a href="mailto:magnarn@yahoo-inc.com">Magnar Nedland</a>
@author bjorncs
predicate-search/src/test/java/com/yahoo/search/predicate/index/SimpleIndexTest.java