void () { LongLinkedHashMap<String> map = new LongLinkedHashMap<>(10, 1, true); map.put(1, "1"); map.put(2, "2"); map.put(3, "3"); map.put(4, "4"); Assert.assertEquals(4, map.size()); map.clear(); Assert.assertEquals(0, map.size()); Assert.assertTrue(map.isEmpty()); }