@Test
    public void testAnotherImplementation() {
        ListMap<String, String> stringMap = new ListMap<>(IdentityHashMap.class);
        String foo = "foo";
        String bar = "bar";
        String far = "far";
        String rab = "rab";

        stringMap.put(foo, bar);
        stringMap.put(foo, far);
        stringMap.put(bar, rab);

        List<String> fooValues = stringMap.get(new String("foo"));
        assertEquals(0, fooValues.size());
        fooValues = stringMap.get(foo);
        assertEquals(2, fooValues.size());
        assertEquals("bar", fooValues.get(0));
        assertEquals("far", fooValues.get(1));


        List<String> barValues = stringMap.get(new String("bar"));
        assertEquals(0, barValues.size());
        barValues = stringMap.get(bar);
        assertEquals(1, barValues.size());
        assertEquals("rab", barValues.get(0));
    }
@author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
vespajlib/src/test/java/com/yahoo/collections/ListMapTestCase.java