### Question:
IteratorHelper { @Nonnull public static <ELEMENTTYPE> Enumeration <ELEMENTTYPE> getEnumeration (@Nullable final Iterable <ELEMENTTYPE> aCont) { return CollectionHelper.isEmpty (aCont) ? new EmptyEnumeration <> () : getEnumeration (aCont.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 testGetEnumeratorFromIterator () { final List <String> aList = newList ("d", "c", "b", "a"); Enumeration <String> aEnum = getEnumeration (aList.iterator ()); assertTrue (aEnum.hasMoreElements ()); assertEquals ("d", aEnum.nextElement ()); assertTrue (aEnum.hasMoreElements ()); assertEquals ("c", aEnum.nextElement ()); assertTrue (aEnum.hasMoreElements ()); assertEquals ("b", aEnum.nextElement ()); assertTrue (aEnum.hasMoreElements ()); assertEquals ("a", aEnum.nextElement ()); assertFalse (aEnum.hasMoreElements ()); assertFalse (aEnum.hasMoreElements ()); aEnum = getEnumeration ((Iterator <String>) null); assertFalse (aEnum.hasMoreElements ()); }