ConvertingItemNavigator implements ItemNavigator<T_EXTERNAL> { @Override public int getNumOfItems() { return queryNavigator.getNumOfItems(); } ConvertingItemNavigator(ItemNavigator<T_INTERNAL> queryNavigator, Converter<T_EXTERNAL, T_INTERNAL> converter); @Override T_EXTERNAL navigateTo(int itemPos); @Override T_EXTERNAL getCurrentItem(); @Override int getNumOfItems(); @Override int getCurrentItemIdx(); @Override void clearCaches();  }
@Test public void testGetNumOfItems() { assertEquals(6, convertingNavigator.getNumOfItems()); assertEquals(0, toNavigatorItemTypeCallCount); }