@Test public void size() throws Exception { final StringKeyObjectMap<Integer> map = new StringKeyObjectMap<Integer>(); Assert.assertEquals(0, map.size()); map.put("abc", Integer.valueOf(0)); Assert.assertEquals(1, map.size()); }