### Question:
IteratorToGeneratorAdapter extends LoopGenerator<E> { public static <E> IteratorToGeneratorAdapter<E> adapt(Iterator<? extends E> iter) { return null == iter ? null : new IteratorToGeneratorAdapter<E>(iter); } IteratorToGeneratorAdapter(Iterator<? extends E> iter); void run(Procedure<? super E> proc); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static IteratorToGeneratorAdapter<E> adapt(Iterator<? extends E> iter); static IteratorToGeneratorAdapter<E> adapt(Iterable<? extends E> iterable);  }### Answer:
@Test public void testAdaptNull() { assertNull(IteratorToGeneratorAdapter.adapt((Iterator<?>) null)); }
@Test public void testAdaptNonNull() { assertNotNull(IteratorToGeneratorAdapter.adapt(list.iterator())); }