CacheTagSet implements Set<CacheTag>, Serializable { public boolean addAll(Collection<? extends CacheTag> c) { boolean inserted = false; for (CacheTag tag : c) { if (!tags.contains(tag)) { tags.add(tag); inserted = true; } } return inserted; } CacheTagSet();  CacheTagSet(CacheTag[] tags); CacheTag[] getTags(); boolean add(String key, String value); boolean add(CacheTag tag); boolean excludeTagsWith(String key); boolean excludeTagsWith(Collection<String> keys); boolean addAll(Collection<? extends CacheTag> c); void clear(); boolean contains(Object o); boolean containsAll(Collection<?> c); boolean isEmpty(); Iterator<CacheTag> iterator(); boolean remove(Object o); boolean remove(String name, Object value); boolean removeAll(Collection<?> c); boolean removeAllByTagName(String name); boolean retainAll(Collection<?> c); int size(); Object[] toArray(); T[] toArray(T[] a); String toString();  }
@Test public void testAddAll() { List<CacheTagImpl> tags = new ArrayList<CacheTagImpl>(); tags.add(new CacheTagImpl("d")); tags.add(new CacheTagImpl("e")); set.addAll(tags); assertTrue(set.contains(new CacheTagImpl("d", CacheTag.ANY))); assertTrue(set.contains(new CacheTagImpl("e", CacheTag.ANY))); assertEquals(5, set.size()); }