@Test
    public void testRemoveAll() {
        assertEquals(Arrays.asList(1, 3, 4), Seq.of(1, 2, 3, 2, 4).removeAll(2).toList());
        assertEquals(Arrays.asList(1, 3, 4), Seq.of(1, 2, 3, 2, 4).removeAll(2).removeAll(2).toList());
        assertEquals(Arrays.asList(1, 2, 3, 2, 4), Seq.of(1, 2, 3, 2, 4).removeAll(5).toList());
        assertEquals(Arrays.asList(1, 4), Seq.of(1, 2, 3, 2, 4).removeAll(2, 3).toList());
        assertEquals(Arrays.asList(1, 2, 3, 2, 4), Seq.of(1, 2, 3, 2, 4).removeAll((Integer) null).toList());

        verifyIteratorValidity(3, Seq.of(1, 2, 3), seq -> seq.removeAll(2));
    }
@author Lukas Eder
@author Roman Tkalenko
jOOL-java-8/src/test/java/org/jooq/lambda/SeqTest.java