### Question:
CircularObservableList extends ModifiableObservableListBase<E> { @Override public boolean addAll(int index, Collection<? extends E> c) { boolean retVal = false; try { beginChange(); retVal = wrapped.addAll(index, c); nextAdd(index, index + c.size()); houseKeep(); modCount++; } finally { endChange(); } return retVal; } CircularObservableList(int maxCapacity); void setMaxCapacity(int maxCapacity); int getMaxCapacity(); @Override boolean addAll(int index, Collection<? extends E> c); @Override E get(int index); @Override int size();  }### Answer:
@Test public void addAll() { CircularObservableList<Integer> victim = new CircularObservableList<>(2); victim.addAll(Arrays.asList(1, 2, 3)); assertEquals(2, victim.size()); assertFalse(victim.contains(1)); }