@Test
    void fuzzy_with_annotations() {
        var where = """
                {
                  "contains": ["description", {
                    "fuzzy": {
                      "children": ["a b"],
                      "attributes": {
                        "maxEditDistance": 3,
                        "prefixLength": 10,
                        "prefix": true
                      }
                    }
                  }]
                }
                """;
        QueryTree x = parseWhere(where);
        Item root = x.getRoot();
        assertSame(FuzzyItem.class, root.getClass());
        var fuzzy = (FuzzyItem) root;
        assertEquals("description", fuzzy.getIndexName());
        assertEquals("a b", fuzzy.stringValue());
        assertEquals(3, fuzzy.getMaxEditDistance());
        assertEquals(10, fuzzy.getPrefixLength());
        assertTrue(fuzzy.isPrefixMatch());
    }
Tests Query.Select

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