### Question:
MemoryRepositoryResolver implements RepositoryResolver { public @Override void initialize(@NonNull URI repoURI) throws IllegalArgumentException { this.getStores(repoURI); }  static @VisibleForTesting void removeContext(@NonNull String context); static void removeAllContexts(); @Override boolean canHandle(@NonNull URI repoURI); @Override boolean canHandleURIScheme(String scheme); @Override boolean repoExists(@NonNull URI repoURI); @Override URI buildRepoURI(@NonNull URI rootRepoURI, @NonNull String repoName); URI createRootURI(@NonNull String contextName); @Override URI getRootURI(@NonNull URI repoURI); @Override List<String> listRepoNamesUnderRootURI(@NonNull URI rootRepoURI); @Override String getName(@NonNull URI repoURI); @Override void initialize(@NonNull URI repoURI); @Override Repository open(@NonNull URI repositoryURI); @Override Repository open(@NonNull URI repositoryURI, @NonNull Hints hints); @Override boolean delete(@NonNull URI repositoryLocation); @Override ConfigDatabase resolveConfigDatabase(@NonNull URI repoURI,
            @NonNull Context repoContext, boolean rootUri); @Override ObjectDatabase resolveObjectDatabase(@NonNull URI repoURI, Hints hints); @Override IndexDatabase resolveIndexDatabase(@NonNull URI repoURI, Hints hints); @Override RefDatabase resolveRefDatabase(@NonNull URI repoURI, Hints hints); @Override ConflictsDatabase resolveConflictsDatabase(@NonNull URI repoURI, Hints hints);  }### Answer:
public @Test void testInitialize() { URI root1 = URI.create("memory: URI root2 = URI.create("memory: String name = "repository name"; URI repo1 = resolver.buildRepoURI(root1, name); URI repo2 = resolver.buildRepoURI(root2, name); assertFalse(resolver.repoExists(repo1)); assertFalse(resolver.repoExists(repo2)); resolver.initialize(repo1); resolver.initialize(repo2); assertTrue(MemoryRepositoryResolver.getContext(context1).get().contains(repo1)); assertFalse(MemoryRepositoryResolver.getContext(context2).get().contains(repo1)); assertFalse(MemoryRepositoryResolver.getContext(context1).get().contains(repo2)); assertTrue(MemoryRepositoryResolver.getContext(context2).get().contains(repo2)); }