@Test
    public void testGroupedOnSeqOfEqualElements() throws Exception {
        List<String> strings = asList("seq", "seq", "seq", "seq", "seq");
        Seq<String> seq = Seq.seq(strings);
        assertEquals(
                asList(tuple('q', strings)),
                seq.grouped(xs -> xs.charAt(2)).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