@Test
public void clearOnEmptyListDoesntFireInvalidation() throws Exception {

  ObservableList<String> list = new ObservableList<>();
  CountListener listener = new CountListener();
  list.addListener(listener);
  list.clear();
  assertThat(listener.getCount()).isEqualTo(0);
}