### Question:
IteratorHelper { @Nonnegative public static int getSize (@Nullable final IIterableIterator <?> aIterator) { return aIterator == null ? 0 : getSize (aIterator.iterator ()); } private  IteratorHelper(); static boolean isEmpty(@Nullable final Iterator <?> aIter); static boolean isEmpty(@Nullable final IIterableIterator <?> aIter); static boolean isEmpty(@Nullable final Enumeration <?> aEnum); static boolean isNotEmpty(@Nullable final Iterator <?> aIter); static boolean isNotEmpty(@Nullable final IIterableIterator <?> aIter); static boolean isNotEmpty(@Nullable final Enumeration <?> aEnum); @Nonnegative static int getSize(@Nullable final IIterableIterator <?> aIterator); @Nonnegative static int getSize(@Nullable final Iterator <?> aIterator); @Nonnegative static int getSize(@Nullable final Enumeration <?> aEnumeration); @Nonnull static IIterableIterator <ELEMENTTYPE> getIterator(@Nullable final Enumeration <? extends ELEMENTTYPE> aEnum); @Nonnull static Iterator <ELEMENTTYPE> getIterator(@Nullable final Iterable <ELEMENTTYPE> aCont); @Nonnull static Iterator <ELEMENTTYPE> getIterator(@Nullable final Iterator <ELEMENTTYPE> aIter); @Nonnull @SafeVarargs static Iterator <ELEMENTTYPE> getIterator(@Nullable final ELEMENTTYPE... aArray); @Nonnull static Iterator <ELEMENTTYPE> getReverseIterator(@Nullable final List <? extends ELEMENTTYPE> aCont); @Nonnull static Iterator <ELEMENTTYPE> getCombinedIterator(@Nullable final Iterator <? extends ELEMENTTYPE> aIter1,
                                                                          @Nullable final Iterator <? extends ELEMENTTYPE> aIter2); @Nonnull static Enumeration <ELEMENTTYPE> getEnumeration(@Nullable final Iterable <ELEMENTTYPE> aCont); @Nonnull @SafeVarargs static Enumeration <ELEMENTTYPE> getEnumeration(@Nullable final ELEMENTTYPE... aArray); @Nonnull static Enumeration <ELEMENTTYPE> getEnumeration(@Nullable final Iterator <ELEMENTTYPE> aIter); @Nonnull static Enumeration <Map.Entry <KEYTYPE, VALUETYPE>> getEnumeration(@Nullable final Map <KEYTYPE, VALUETYPE> aMap);  }### Answer:
@Test public void testGetSize_IterableIterator () { assertEquals (0, getSize ((IIterableIterator <?>) null)); assertEquals (0, getSize (IterableIterator.createEmpty ())); assertEquals (1, getSize (new IterableIterator <> (newList ("any")))); }
@Test public void testGetSize_Iterator () { assertEquals (0, getSize ((Iterator <?>) null)); assertEquals (0, getSize (new CommonsArrayList <String> ().iterator ())); assertEquals (1, getSize (newList ("any").iterator ())); }