@Test
public void testSublist() throws Exception {

  ObservableList<String> list = new ObservableList<>();
  list.add("A");
  list.add("B");
  list.add("C");
  List<String> sublist = list.subList(1, 3);
  assertThat(sublist).containsExactly("B", "C");
}