@Test
public void testSort() {

    IntList list = new IntList();
    list.sort();
    assertThat(list.toArray()).isEmpty();
    list.add(10);
    list.add(5);
    list.sort();
    assertThat(list.toArray()).containsExactly(5, 10);
}