CaselessMultivaluedMap implements ExtMultivaluedMap<String, T>, Serializable { @Override public void add(String key, T value) { m.add(new CaselessStringWrapper(key), value); } CaselessMultivaluedMap();  CaselessMultivaluedMap(int capacity);  CaselessMultivaluedMap(Map<String, List<T>> m); @Override void add(String key, T value); @Override void clear(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override Set<Entry<String, List<T>>> entrySet(); @Override List<T> get(Object key); @Override T getFirst(String key); @Override void addAll(String key, T... newValues); @Override void addAll(String key, List<T> valueList); @Override void addFirst(String key, T value); @Override boolean equalsIgnoreValueOrder(MultivaluedMap<String, T> otherMap); @Override List<T> getList(String key); @Override boolean isEmpty(); @Override Set<String> keySet(); @Override List<T> put(String key, List<T> value); @Override void putAll(Map<? extends String, ? extends List<T>> m); @Override void putSingle(String key, T value); @Override List<T> remove(Object key); @Override int size(); @Override Collection<List<T>> values(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testAdd() { map.add("KeY1", "a"); assertEquals(1, map.size()); assertEquals("a", map.getFirst("key1")); assertEquals(1, map.get("KEY1").size()); }