IndirectMap extends IndirectCollection<Map<K, V>> implements Map<K, V> { @Override public String toString() { return internalMap.toString(); } IndirectMap();  IndirectMap(Object owner, Field f, UnitOfWorkImpl persistenceContext, Map<K, V> referencedMap); @Override Map<K, V> unwrap(); @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(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test void toStringInvokesToStringOfReferencedInstance() { assertEquals(map.toString(), sut.toString()); }