@Test
public void testRemoveIf() {

    DoubleList list = new DoubleList();
    list.removeIf(o -> o < 7);
    assertThat(list.toArray()).isEmpty();
    list.add(10d);
    list.add(5d);
    list.removeIf(o -> o < 7);
    assertThat(list.toArray()).containsExactly(10d);
}