### Question:
UniqueList extends TransformedList<E, E> { @Override public void dispose() { ((SortedList)source).dispose(); super.dispose(); } UniqueList(EventList<E> source);  UniqueList(EventList<E> source, Comparator<? super E> comparator); private  UniqueList(SortedList<E> source, Void dummyParameter); static UniqueList<E> create(EventList<E> source); void setComparator(Comparator<? super E> comparator); @Override int size(); @Override E remove(int index); @Override E set(int index, E value); @Override int indexOf(Object element); @Override void listChanged(ListEvent<E> listChanges); int getCount(int index); int getCount(E value); List<E> getAll(int index); List<E> getAll(E value); @Override void dispose();  }### Answer:
@Test public void testDispose() { assertEquals(1, source.updates.getListEventListeners().size()); unique.dispose(); assertEquals(0, source.updates.getListEventListeners().size()); }