CaselessMultivaluedMap implements ExtMultivaluedMap<String, T>, Serializable { @Override public List<T> getList(String key) { return m.getList(new CaselessStringWrapper(key)); } 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 testGetList() { assertEquals(0, map.size()); List<String> list = map.getList("key1"); assertNotNull(list); assertEquals(0, list.size()); assertEquals(1, map.size()); }