@Test
public void testToArray() throws Exception {

  ObservableList<String> list = new ObservableList<>();
  list.add("A");
  list.add("B");
  list.add("C");
  assertThat(list.toArray()).isEqualTo(new String[]{"A", "B", "C"});
}