### Question:
Options { public void putAll(Options other) { this.putAll(other.map); }  Map<K, String> toMap(); void clear(); boolean containsKey(Object key); boolean containsValue(Object value); String get(Object key); K getKey(String value); boolean isEmpty(); Set<K> keySet(); String put(K key, String value); void putAll(Options other); void putAll(Map<K, String> aMap); String remove(Object key); Set<String> removeAll(Set<K> keys); int size(); Set<String> values(); String[] getValues(); int indexOf(String value); String getValue(int index); void addOptionsListener(OptionsListener l); void removeOptionsListener(OptionsListener l); static Options<T> create(T... values);  }### Answer:
@Test public void putAll() { Options<Integer> opt = new Options<Integer>(); HashMap all = new HashMap(); for (int i = 0; i < 10; ++i) { all.put(i, "value " + i); } opt.putAll(all); assertEquals("opt.size()", 10, opt.size()); for (int i = 0; i < 10; ++i) { assertEquals("", "value " + i, opt.get(i)); } }