@Test
    void testTotalPhrasing() {
        Searcher searcher =
                new PhrasingSearcher("src/test/java/com/yahoo/prelude/querytransform/test/test-fsa.fsa");

        Query query = new Query();
        AndItem andItem = new AndItem();
        andItem.addItem(new WordItem("tudor", "someindex"));
        andItem.addItem(new WordItem("vidor", "someindex"));
        query.getModel().getQueryTree().setRoot(andItem);

        new Execution(searcher, Execution.Context.createContextStub()).search(query);
        Item item = ((CompositeItem) query.getModel().getQueryTree().getRoot()).getItem(0);
        assertTrue(item instanceof PhraseItem);
        PhraseItem phrase = (PhraseItem) item;
        assertEquals(2, phrase.getItemCount());
        assertEquals("tudor", phrase.getWordItem(0).getWord());
        assertEquals("vidor", phrase.getWordItem(1).getWord());
        assertEquals("someindex", phrase.getIndexName());
    }
Tests phrasing stuff

@author bratseth
@author Einar M R Rosenvinge
container-search/src/test/java/com/yahoo/prelude/querytransform/test/PhrasingSearcherTestCase.java