@Test
    void testNearisNotAnd() {
        AndItem a = new AndItem();
        NearItem n = new NearItem();
        n.setDistance(2);
        NearItem n2 = new NearItem();
        n2.setDistance(2);
        NearItem n3 = new NearItem();
        n3.setDistance(3);
        fill(a);
        fill(n);
        fill(n2);
        fill(n3);
        assertNotNull(n.hashCode());
        assertNotEquals(n, a);
        assertEquals(n, n2);
        assertNotEquals(n, n3);
    }
Check basic contracts common to "many" item implementations.

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