MapView implements Map<K, V> { public V put(K key, V value) { throw new UnsupportedOperationException(); } 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(expected = UnsupportedOperationException.class) public void testPut() { this.testobj.put("k1", "v1"); }