@Test
    void testLowercasingSameElement() {
        Query q = new Query();
        SameElementItem root = new SameElementItem(SARR);
        root.addItem(new WordItem("ABC", BAMSE, true));
        root.addItem(new WordItem("DEF", TEDDY, true));
        q.getModel().getQueryTree().setRoot(root);
        Result r = createExecution().search(q);
        root = (SameElementItem) r.getQuery().getModel().getQueryTree().getRoot();
        WordItem w0 = (WordItem) root.getItem(0);
        WordItem w1 = (WordItem) root.getItem(1);
        assertEquals("abc", w0.getWord());
        assertEquals("def", w1.getWord());
    }
Tests term lowercasing in the search chain.

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