Container { public V get(final K key) { return this.valueByKey.get(key); } Container(final Logger logger); void setMode(final Mode mode); boolean add(final K key, final V value); void debug(); void freeze(); V get(final K key); Map<K, V> getValueByKey(); Iterable<V> getValues();  }
@Test public final void testGet() { this.container.add("a", 1); Assert.assertEquals(Integer.valueOf(1), this.container.get("a")); Assert.assertNull(this.container.get("b")); final Map<String, Integer> m = new HashMap<String, Integer>(); m.put("a", 1); Assert.assertEquals(m, this.container.getValueByKey()); }