@Test
    void testQueryEquality() {
        String query = "RANK (+(AND \"baz gaz faz\" bazar) -\"foo bar foobar\") foofoo xyzzy";
        String filter = "foofoo -\"foo bar foobar\" xyzzy +\"baz gaz faz\" +bazar";

        Item root1 = parseQuery(query, filter, Query.Type.ANY);
        Item root2 = parseQuery(query, filter, Query.Type.ANY);

        assertEquals(root1.hashCode(), root2.hashCode());
        assertEquals(root1, root2);
    }
Tests that query hash and equality is value dependent only
container-search/src/test/java/com/yahoo/prelude/query/test/QueryTestCase.java