CollectionView implements Collection<E> { public boolean remove(Object o) { return this.collection.remove(o); } CollectionView(Collection<E> collection); boolean add(E element); boolean addAll(Collection<? extends E> collection); void clear(); boolean contains(Object o); boolean containsAll(Collection<?> c); boolean isEmpty(); Iterator<E> iterator(); boolean remove(Object o); boolean removeAll(Collection<?> c); boolean retainAll(Collection<?> c); int size(); Object[] toArray(); T[] toArray(T[] a); String toString();  }
@Test public void testRemove() { for (int i = 0; i < 5; ++i) { assertFalse(this.testobj.remove(String.valueOf(i))); } for (int i = 0; i < 5; ++i) { this.source.add(String.valueOf(i)); } for (int i = 0; i < 5; ++i) { assertTrue(this.testobj.remove(String.valueOf(i))); } for (int i = 0; i < 5; ++i) { assertFalse(this.testobj.remove(String.valueOf(i))); } }