@Test
    public void testModeAllBy() {
        assertEquals(asList(1, 3, 5), Seq.of(1, 2, 2, 3, 5).modeAllBy(i -> i % 2).toList());
        assertEquals(asList(5, 3, 1), Seq.of(1, 2, 2, 3, 5).reverse().modeAllBy(i -> i % 2).toList());
        assertEquals(asList("abc", "xyz"), Seq.of("abc", "a", "", "xyz", "asdfasdf").modeAllBy(String::length).toList());
        assertEquals(asList(), Seq.of().modeAllBy(i -> i).toList());
    }
@author Lukas Eder
@author Roman Tkalenko
jOOL-java-8/src/test/java/org/jooq/lambda/SeqTest.java