void () { final long[] packedKeysValues = generateKeyValues(ENOUGH_ENTRIES); final Int2IntMultimap multimap = new Int2IntMultimap(); for (final long packedKeyValue : packedKeysValues) { final int key = key(packedKeyValue); final int value = value(packedKeyValue); multimap.put(key, value); assertTrue( "Multimap must have (key,value) just added", multimap.has(key, value) ); } for (final long packedKeyValue : packedKeysValues) { final int key = key(packedKeyValue); final int value = value(packedKeyValue); multimap.remove(key, value); assertFalse( "Multimap must NOT have (key, value) just removed", multimap.has(key, value) ); } assertEquals( "Multimap size must be 0 after all entries are removed", multimap.size(), 0 ); }