MapView implements Map<K, V> { public Collection<V> values() { return this.map.values(); } MapView(Map<K, V> map); void clear(); boolean containsKey(Object key); boolean containsValue(Object value); Set<Map.Entry<K, V>> entrySet(); boolean equals(Object obj); V get(Object key); int hashCode(); boolean isEmpty(); Set<K> keySet(); V put(K key, V value); void putAll(Map<? extends K, ? extends V> map); V remove(Object key); int size(); Collection<V> values(); String toString();  }
@Test public void testValues() { assertEquals(this.source.values(), this.testobj.values()); this.source.put("k1", "v1"); assertEquals(this.source.values(), this.testobj.values()); this.source.put("k2", "v2"); assertEquals(this.source.values(), this.testobj.values()); this.source.put("k3", "v3"); assertEquals(this.source.values(), this.testobj.values()); this.source.clear(); assertEquals(this.source.values(), this.testobj.values()); }