RepositoryMap { void remove(Descriptor descriptor, Object original) { assert descriptor != null; assert original != null; final Map<Object, Object> entities = getMap(descriptor); entities.remove(original); }    }
@Test public void testRemove() { repoMap.add(descriptor, entityA, cloneA); repoMap.add(descriptor, entityB, cloneB); assertTrue(repoMap.contains(descriptor, entityA)); assertTrue(repoMap.contains(descriptor, entityB)); repoMap.remove(descriptor, entityB); assertTrue(repoMap.contains(descriptor, entityA)); assertFalse(repoMap.contains(descriptor, entityB)); }