RepositoryMap { void add(Descriptor descriptor, Object original, Object clone) { assert descriptor != null; assert original != null; final Map<Object, Object> entities = getMap(descriptor); entities.put(original, clone); }    }
@Test public void testAdd() { repoMap.add(descriptor, entityA, cloneA); assertTrue(repoMap.contains(descriptor, entityA)); assertTrue(theMap.containsKey(CONTEXT)); assertTrue(theMap.get(CONTEXT).containsKey(entityA)); }