@Test
    void testNumberBasics() {
        String expected = "12";
        IntItem i = new IntItem(expected, "num");
        assertEquals(expected, i.stringValue());
        String expected2 = "34";
        i.setNumber(expected2);
        assertEquals(expected2, i.stringValue());
        String expected3 = "56";
        i.setValue(expected3);
        assertEquals(expected3, i.stringValue());
        assertTrue(i.isStemmed());
        assertFalse(i.isWords());
        assertEquals(1, i.getNumWords());
        assertNotEquals(i, new IntItem(expected3));
        assertEquals(i, new IntItem(expected3, "num"));
    }
Check basic contracts common to "many" item implementations.

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