@Test
    public void testCycle() {
        assertEquals(asList(), Seq.empty().cycle().toList());
        assertEquals(asList(1, 2, 1, 2, 1, 2), Seq.of(1, 2).cycle().limit(6).toList());
        assertEquals(asList(1, 2, 3, 1, 2, 3), Seq.of(1, 2, 3).cycle().limit(6).toList());

        verifyIteratorValidity(3, Seq.of(1, 2, 3), seq -> seq.cycle().limit(6));
    }
@author Lukas Eder
@author Roman Tkalenko
jOOL/src/test/java/org/jooq/lambda/SeqTest.java