IdentityMultimap { synchronized void removeKeyValuePair(@NonNull final K key, @NonNull final V value) { for (int index = 0; index < keysValues.length; index += 2) { if (keysValues[index] == key && keysValues[index + 1] == value) { keysValues[index] = null; keysValues[index + 1] = null; } } }    }
@Test public void shouldHandleRemovalOfNonAddedKeyValuePairWithoutKeyOrValue() { identityMultimap.removeKeyValuePair(new Object(), new Object()); }