@Test
    void testNegativeOnly() {
        CompositeItem root = new AndItem();
        NotItem not = new NotItem();

        root.addItem(not);
        root.addItem(new WordItem("word"));
        not.addNegativeItem(new WordItem("negative"));
        assertCanonicalized("AND (-negative) word", null, root);
    }
Multiple levels of RANK should collapse
container-search/src/test/java/com/yahoo/prelude/query/test/QueryCanonicalizerTestCase.java