MapView implements Map<K, V> { public V get(Object key) { return this.map.get(key); } 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 testGet() { assertNull(this.testobj.get("k1")); assertNull(this.testobj.get("k2")); assertNull(this.testobj.get("k3")); this.source.put("k1", "v1"); assertEquals("v1", this.testobj.get("k1")); assertNull(this.testobj.get("k2")); assertNull(this.testobj.get("k3")); this.source.put("k2", "v2"); assertEquals("v1", this.testobj.get("k1")); assertEquals("v2", this.testobj.get("k2")); assertNull(this.testobj.get("k3")); this.source.put("k3", "v3"); assertEquals("v1", this.testobj.get("k1")); assertEquals("v2", this.testobj.get("k2")); assertEquals("v3", this.testobj.get("k3")); this.source.put("k2", "v2-b"); assertEquals("v1", this.testobj.get("k1")); assertEquals("v2-b", this.testobj.get("k2")); assertEquals("v3", this.testobj.get("k3")); }