@Test
public void listInvalidatedOnAddAll() throws Exception {

  ObservableList<String> list = new ObservableList<>();
  CountListener listener = new CountListener();
  list.addListener(listener);
  list.addAll(ImmutableSet.of("A", "B", "C"));
  assertThat(listener.getCount()).isEqualTo(1);
  assertThat(list).containsExactly("A", "B", "C");
}