void () { Map<String, String> map = CollectionFactory.createWeakMap(10, 0.5f, IGNORE_CASE_WITH_CRAZY_HASH_STRATEGY); String keyL = "ab"; String keyU = StringUtil.toUpperCase(keyL); String value = "asdfab"; map.put(keyL, value); assertSame(value, map.get(keyU)); assertSame(value, map.get(keyL)); String removed = map.remove("aB"); assertSame(value, removed); assertTrue(map.isEmpty()); }