@@ -0,0 +1,768 @@
+package Iterator;%0A%0Aimport org.hamcrest.core.Is;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport java.util.Arrays;%0Aimport java.util.Iterator;%0A%0A/**%0A * Created by admin on 30.05.2017.%0A */%0Apublic class IteratorIteratorTest %7B%0A    @Test%0A    public void test() %7B%0A        Iterator%3CInteger%3E first = Arrays.asList(1, 2, 3).iterator();%0A        Iterator%3CInteger%3E second = Arrays.asList(4, 5, 6).iterator();%0A        Iterator%3CIterator%3CInteger%3E%3E it = Arrays.asList(first, second).iterator();%0A        Iterator%3CInteger%3E iter = IteratorIterator.convert(it);%0A        Assert.assertThat(1, Is.is(iter.next()));%0A        iter.next();%0A        iter.next();%0A        iter.next();%0A        iter.next();%0A        iter.next();%0A        Assert.assertThat(false, Is.is(iter.hasNext()));%0A    %7D%0A%7D%0A

task 151