SetView extends CollectionView<E> implements Set<E> { public boolean equals(Object obj) { return this.collection.equals(obj); } SetView(Set<E> set); boolean equals(Object obj); int hashCode();  }
@Test public void testEquals() { Set comp = new HashSet(); assertTrue(this.testobj.equals(comp)); for (int i = 0; i < 5; ++i) { this.source.add(String.valueOf(i)); assertFalse(this.testobj.equals(comp)); comp.add(String.valueOf(i)); assertTrue(this.testobj.equals(comp)); } this.source.clear(); assertFalse(this.testobj.equals(comp)); comp.clear(); assertTrue(this.testobj.equals(comp)); }