@Test
    void testCounting() {
        WordItem w = new WordItem("nalle");
        AndItem a = new AndItem();
        WordItem v = new WordItem("bamse");
        AndItem other = new AndItem();
        assertEquals(0, a.getTermCount());
        a.addItem(w);
        assertEquals(1, a.getTermCount());
        other.addItem(v);
        a.addItem(other);
        assertEquals(2, a.getTermCount());
    }
Check basic contracts common to "many" item implementations.

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