@Theory // Last head/value pair should be taken, others ignored.
    public void convertToMap(int size) {
        Map<String, String> expected = new LinkedHashMap<>();
        expected.put("a", "x");
        expected.put("b", "y");
        expected.put("C", "X_X"); // Last in should win

        CaseInsensitiveStringMultiMap mmap = new CaseInsensitiveStringMultiMap(size);
        // Additional entries should be ignored
        mmap.add("a", "x").add("b", "y").add("c", "z").add("c", "XX").add("C", "X_X");
        Map<String, String> actual = mmap.toMap();

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