@Test
public void shouldRemoveConsecutiveDuplicatesInAList() throws Exception {

    List<String> compressedList = P08.compress(asList("a", "a", "a", "a", "b", "c", "c", "d", "e", "e", "e", "e"));
    assertThat(compressedList, hasSize(5));
    assertThat(compressedList, contains("a", "b", "c", "d", "e"));
}