@Test
    public void testGroupedOnASingleElementSeq() throws Exception {
        int[] array = { 0 };
        Seq<int[]> seq = Seq.of(array);
        assertEquals(
                asList(tuple(1, asList(array))),
                seq.grouped(xs -> xs.length).map(t -> t.map2(s -> s.toList())).toList());
    }
@author Lukas Eder
@author Roman Tkalenko
jOOL-java-8/src/test/java/org/jooq/lambda/SeqTest.java