@Test
    void requireThatSmallRangeIsExpanded() {
        PredicateRangeTermExpander expander = new PredicateRangeTermExpander(10);
        Iterator<String> expectedLabels = List.of(
                "key=40-49",
                "key=0-99",
                "key=0-999",
                "key=0-9999",
                "key=0-99999",
                "key=0-999999",
                "key=0-9999999",
                "key=0-99999999",
                "key=0-999999999",
                "key=0-9999999999",
                "key=0-99999999999",
                "key=0-999999999999",
                "key=0-9999999999999",
                "key=0-99999999999999",
                "key=0-999999999999999",
                "key=0-9999999999999999",
                "key=0-99999999999999999",
                "key=0-999999999999999999").iterator();
        expander.expand("key", 42, range -> assertEquals(PredicateHash.hash64(expectedLabels.next()), range),
                (edge, value) -> {
                    assertEquals(PredicateHash.hash64("key=40"), edge);
                    assertEquals(2, value);
                });
        assertFalse(expectedLabels.hasNext());
    }
@author <a href="mailto:magnarn@yahoo-inc.com">Magnar Nedland</a>
predicate-search/src/test/java/com/yahoo/search/predicate/index/PredicateRangeTermExpanderTest.java