@Test
    final void testSetConnectivity() {
        final PhraseSegmentItem p = new PhraseSegmentItem("farmyards", false,
                false);
        assertEquals(0.0d, p.getConnectivity(), 1e-9);
        final WordItem w = new WordItem("nalle");
        final double expectedConnectivity = 37e9;
        p.setConnectivity(w, expectedConnectivity);
        assertSame(w, p.getConnectedItem());
        assertEquals(expectedConnectivity, p.getConnectivity(), 1e0);
    }
Keep CompositeTaggableItem, SimpleTaggableItem and TaggableSegmentItem in
lockstep.

@author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
container-search/src/test/java/com/yahoo/prelude/query/TaggableItemsTestCase.java