@Test
    void requireThatLargeRangeIsExpanded() {
        PredicateRangeTermExpander expander = new PredicateRangeTermExpander(10);
        Iterator<String> expectedLabels = List.of(
                "key=123456789012345670-123456789012345679",
                "key=123456789012345600-123456789012345699",
                "key=123456789012345000-123456789012345999",
                "key=123456789012340000-123456789012349999",
                "key=123456789012300000-123456789012399999",
                "key=123456789012000000-123456789012999999",
                "key=123456789010000000-123456789019999999",
                "key=123456789000000000-123456789099999999",
                "key=123456789000000000-123456789999999999",
                "key=123456780000000000-123456789999999999",
                "key=123456700000000000-123456799999999999",
                "key=123456000000000000-123456999999999999",
                "key=123450000000000000-123459999999999999",
                "key=123400000000000000-123499999999999999",
                "key=123000000000000000-123999999999999999",
                "key=120000000000000000-129999999999999999",
                "key=100000000000000000-199999999999999999",
                "key=0-999999999999999999").iterator();
        expander.expand("key", 123456789012345678L, range -> assertEquals(PredicateHash.hash64(expectedLabels.next()), range),
                (edge, value) -> {
                    assertEquals(PredicateHash.hash64("key=123456789012345670"), edge);
                    assertEquals(8, 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