@Test
public void select_multi_hit_with_overlap() throws Exception {

    List<Emit> list = new ArrayList<Emit>();
    list.add(new Emit(0, 4, null));
    list.add(new Emit(0, 4, null));
    list.add(new Emit(0, 5, null));
    list.add(new Emit(2, 3, null));
    list.add(new Emit(2, 10, null));
    list.add(new Emit(5, 7, null));
    list.add(new Emit(7, 8, null));
    list.add(new Emit(8, 9, null));
    List<Emit> result = mSelector.select(list);
    assertThat(result.size(), is(2));
    assertThat(result.get(0).getStart(), is(0));
    assertThat(result.get(0).getEnd(), is(5));
    assertThat(result.get(1).getStart(), is(7));
    assertThat(result.get(1).getEnd(), is(8));
}