@Test
    void simple() {
        Query q = new Query();
        AndItem root = new AndItem();
        WordItem tmp;
        tmp = new WordItem("Gnuff", BAMSE, true);
        root.addItem(tmp);
        tmp = new WordItem("Blaff", TEDDY, true);
        root.addItem(tmp);
        tmp = new WordItem("Blyant", "", true);
        root.addItem(tmp);
        q.getModel().getQueryTree().setRoot(root);

        Result r = createExecution().search(q);
        root = (AndItem) r.getQuery().getModel().getQueryTree().getRoot();
        WordItem w0 = (WordItem) root.getItem(0);
        WordItem w1 = (WordItem) root.getItem(1);
        WordItem w2 = (WordItem) root.getItem(2);
        assertEquals("gnuff", w0.getWord());
        assertEquals("Blaff", w1.getWord());
        assertEquals("blyant", w2.getWord());
    }
Tests term lowercasing in the search chain.

@author Steinar Knutsen
container-search/src/test/java/com/yahoo/search/querytransform/LowercasingTestCase.java