@Test
    void testTermTypeBasic() {
        assertNotEquals(TermType.AND, TermType.DEFAULT);
        assertNotEquals(TermType.AND, Integer.valueOf(10));
        assertEquals(TermType.AND, TermType.AND);
        assertSame(AndItem.class, TermType.DEFAULT.createItemClass().getClass());
        assertSame(CompositeItem.class, TermType.DEFAULT.getItemClass());
        assertNotNull(TermType.PHRASE.hashCode());
        assertEquals("term type 'not'", TermType.NOT.toString());
    }
Check basic contracts common to "many" item implementations.

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