@Test
    void testFuzzy() {
        QueryTree x = parseWhere("{ \"contains\": [\"description\", { \"fuzzy\": [\"a b\"] }] }");
        Item root = x.getRoot();
        assertSame(FuzzyItem.class, root.getClass());
        var fuzzy = (FuzzyItem) root;
        assertEquals("description", fuzzy.getIndexName());
        assertEquals("a b", fuzzy.stringValue());
        assertEquals(FuzzyItem.DEFAULT_MAX_EDIT_DISTANCE, fuzzy.getMaxEditDistance());
        assertEquals(FuzzyItem.DEFAULT_PREFIX_LENGTH, fuzzy.getPrefixLength());
        assertFalse(fuzzy.isPrefixMatch());
    }
Tests Query.Select

@author henrhoi
@author bratseth
container-search/src/test/java/com/yahoo/select/SelectTestCase.java