### Question:
MemoryRepositoryResolver implements RepositoryResolver { public @Override URI buildRepoURI(@NonNull URI rootRepoURI, @NonNull String repoName) { try { String path = rootRepoURI.getPath(); if (path.length() > 1 && !path.endsWith("/")) { path += "/"; } return new URI(rootRepoURI.getScheme(), rootRepoURI.getHost(), path, repoName) .normalize(); } catch (Exception e) { throw new RuntimeException(e); } }  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 testBuildRepoURI() { URI root = URI.create("memory: assertEquals(URI.create("memory: resolver.buildRepoURI(root, "repo name")); root = URI.create("memory: assertEquals(URI.create("memory: resolver.buildRepoURI(root, "repo name")); root = URI.create("memory: assertEquals(URI.create("memory: resolver.buildRepoURI(root, "repo name")); root = URI.create("memory: assertEquals(URI.create("memory: resolver.buildRepoURI(root, "repo name")); }