@Test
    void testAddItem() {
        PhraseItem p = new PhraseItem();
        PhraseSegmentItem pp = new PhraseSegmentItem("", false, false);
        PhraseItem ppp = new PhraseItem();
        pp.addItem(new WordItem("b"));
        pp.addItem(new WordItem("c"));
        ppp.addItem(new WordItem("e"));
        ppp.addItem(new WordItem("f"));
        p.addItem(new WordItem("a"));
        p.addItem(pp);
        p.addItem(new WordItem("d"));
        p.addItem(ppp);
        assertEquals("\"a 'b c' d e f\"", p.toString());
    }
Test methods changing phrase items.

@author Steinar Knutsen
container-search/src/test/java/com/yahoo/prelude/query/test/PhraseItemTestCase.java