@Test
    void testBaseClassPhraseSegments() {
        PhraseSegmentItem p = new PhraseSegmentItem("g", false, true);
        fill(p);
        assertEquals(4, p.encode(ByteBuffer.allocate(5000)));
        p.setIndexName(null);
        assertEquals("", p.getIndexName());
        PhraseSegmentItem p2 = new PhraseSegmentItem("g", false, true);
        fill(p2);
    }
Check basic contracts common to "many" item implementations.

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