@Test
    void requireSimilarAPIs() {
        final Method[] composite = CompositeTaggableItem.class
                .getDeclaredMethods();
        final Method[] simple = SimpleTaggableItem.class.getDeclaredMethods();
        final Method[] segment = TaggableSegmentItem.class.getDeclaredMethods();
        final int numberOfMethods = 12;
        assertEquals(numberOfMethods, composite.length);
        assertEquals(numberOfMethods, simple.length);
        assertEquals(numberOfMethods, segment.length);
        final Set<ApiMethod> compositeSet = methodSet(composite);
        final Set<ApiMethod> simpleSet = methodSet(simple);
        final Set<ApiMethod> segmentSet = methodSet(segment);
        assertEquals(compositeSet, simpleSet);
        assertEquals(simpleSet, segmentSet);

    }
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