@Theory
    public void shouldAddEntriesFromMap(int size) {
        List<Entry<String, String>> expected = Arrays.asList(ent("a", "b"), ent("x", "y"), ent("y", "z"));

        Map<String, String> in = new HashMap<String, String>() {
            private static final long serialVersionUID = 1L; {
            put("x", "y");
            put("y", "z");
            put("a", "b");
        }};

        CaseInsensitiveStringMultiMap mmap = new CaseInsensitiveStringMultiMap(size);
        mmap.addAll(in);

        List<Entry<String, String>> c = mmap.getEntries();

        c.sort((e1, e2) -> {
            int kComp = e1.getKey().compareTo(e2.getKey());
            if (kComp == 0) return 0;
            return e1.getValue().compareTo(e2.getValue());
        });

        Assert.assertEquals(expected, c);
    }
@author Marc Savy {@literal <msavy@redhat.com>}
gateway/engine/beans/src/test/java/io/apiman/gateway/engine/beans/util/CaseInsensitiveStringMultiMapTest.java