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