ImmutableMapState extends ImmutableState implements MapState<K, V> { @Override public void putAll(Map<K, V> map) { throw MODIFICATION_ATTEMPT_ERROR; } private  ImmutableMapState(final Map<K, V> mapState); @Override V get(K key); @Override void put(K key, V value); @Override void putAll(Map<K, V> map); @Override void remove(K key); @Override boolean contains(K key); @Override Iterable<Map.Entry<K, V>> entries(); @Override Iterable<K> keys(); @Override Iterable<V> values(); @Override Iterator<Map.Entry<K, V>> iterator(); @Override void clear(); static ImmutableMapState<K, V> createState(
			final MapStateDescriptor<K, V> stateDescriptor,
			final byte[] serializedState);  }
@Test(expected = UnsupportedOperationException.class) public void testPutAll() { assertTrue(mapState.contains(1L)); long value = mapState.get(1L); assertEquals(5L, value); assertTrue(mapState.contains(2L)); value = mapState.get(2L); assertEquals(5L, value); Map<Long, Long> nMap = new HashMap<>(); nMap.put(1L, 7L); nMap.put(2L, 7L); mapState.putAll(nMap); }