ResultMap implements Map<K,V>, ResultConsumer<K,V> { @Override public V put(K key, V value) { throw new RuntimeException("Method put is not available in this context"); } ResultMap();  ResultMap(Map<K,V> map);  ResultMap(Supplier<Map<K,V>> map); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override V get(Object key); @Override V put(K key, V value); @Override V remove(Object key); @Override void putAll(Map<? extends K, ? extends V> m); @Override void clear(); @Override Set<K> keySet(); @Override Collection<V> values(); @Override Set<java.util.Map.Entry<K, V>> entrySet(); Map<K,V> unwrap(); @Override void accept(ProductBin<K, V> bin); static ResultMap<K,V> of(Conveyor<K,?,V> conv); static ResultMap<K,V> of(Conveyor<K,?,V> conv, Map<K,V> map); static ResultMap<K,V> of(Conveyor<K,?,V> conv, Supplier<Map<K,V>> mapS); @Override String toString();  }
@Test(expected = RuntimeException.class) public void putTest() { ResultMap<Integer,String> rm1 = new ResultMap<>(); rm1.put(1,"test"); }