ParametersMap extends AbstractParameters<V> { public void clear() { map.clear(); } ParametersMap();  ParametersMap(Map<String, V> map); V get(Object key); V put(String key, V value); Set<String> keySet(); Collection<V> values(); void clear(); int size(); boolean containsKey(Object key); @Override Set<Entry<String, V>> entrySet(); @Override Parameters<V> getParameters(String key); Map<String, V> toMap();  }
@Test public void clear() throws Exception { ParametersMap parametersMap = new ParametersMap(); HashMap<String, Object> map = new HashMap<>(); ParametersMap<Object> parametersMap2 = new ParametersMap<Object>(map); assertEquals(map.get("test"), parametersMap.get("test")); assertEquals(map.put("test", "abc"), parametersMap.put("test", "abc")); parametersMap.keySet(); parametersMap.values(); parametersMap.entrySet(); assertEquals(map.containsKey("test"), parametersMap2.containsKey("test")); assertEquals(map.size(), parametersMap2.size()); assertFalse(parametersMap2.isEmpty()); parametersMap2.clear(); assertEquals(0, parametersMap2.size()); assertTrue(parametersMap2.isEmpty()); }