assertEquals(listView1.addSelectedRange(16, 19).getLength(), 1);
assertEquals(listView1.removeSelectedRange(10, 17).getLength(), 2);
Sequence<Span> selectedRanges = listView1.getSelectedRanges();
assertEquals(selectedRanges.getLength(), 2);
assertEquals(selectedRanges.get(0), new Span(2, 9));
assertEquals(selectedRanges.get(1), new Span(18, 19));
assertEquals(listView1.removeSelectedRange(1, 20).getLength(), 2);
assertEquals(listView1.removeSelectedRange(0, 5).getLength(), 0);
compareSelectionState();