@Test
    public void testMode() {
        assertEquals(1, (int) Seq.of(1, 1, 1, 2, 3).mode().get());
        assertEquals(2, (int) Seq.of(1, 2, 2, 2, 3, 3, 3, 4).mode().get());
        assertEquals(3, (int) Seq.of(1, 2, 2, 2, 3, 3, 3, 4).reverse().mode().get());
        assertEquals("B", Seq.of("A", "B", "B", "B", "C").mode().get());
        assertEquals(Optional.empty(), Seq.of().mode());
    }
@author Lukas Eder
@author Roman Tkalenko
jOOL-java-8/src/test/java/org/jooq/lambda/SeqTest.java