@Test
    void testRemoving() {
        AndItem other = new AndItem();
        WordItem w = new WordItem("nalle");
        AndItem a = new AndItem();
        WordItem v = new WordItem("bamse");
        v.setParent(other);
        a.addItem(w);
        assertFalse(a.removeItem(null));
        assertTrue(a.removeItem(w));
        assertNull(w.getParent());
        a.removeItem(v);
        assertSame(other, v.getParent());
    }
Check basic contracts common to "many" item implementations.

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