MutableMetaDataRepository repository = setupEmpty();
TestMetaDataRetrievalFactory factory1 = new TestMetaDataRetrievalFactory();
repository.addMetaDataRetrievalFactory(testLevel1, factory1);
TestMetaDataRetrievalFactory factory2 = new TestMetaDataRetrievalFactory();
repository.addMetaDataRetrievalFactory(testLevel2, factory2);
MutableMetaDataLoader loader1 = createTestMutableMetaDataLoader(testKey1);
factory1.retrievals.put(testScope1, loader1);
MutableMetaDataLoader loader2 = createTestMutableMetaDataLoader(testKey2);
factory2.retrievals.put(testScope2, loader2);
assertEquals(loader1, repository.getMetaDataRetrieval(testKey1));
assertEquals(loader2, repository.getMetaDataRetrieval(testKey2));
}