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

        assertEquals(asList(), Seq.of(1, 2).cycle(0).toList());
        assertEquals(asList(1, 2), Seq.of(1, 2).cycle(1).toList());
        assertEquals(asList(1, 2, 1, 2), Seq.of(1, 2).cycle(2).toList());
        assertEquals(asList(1, 2, 1, 2, 1, 2), Seq.of(1, 2).cycle(3).toList());

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