### Question:
InMemorySourceRegistry implements SourceRegistry { @Override public void registerRepositorySources(final Path path, final Repository repo) { repositorySourcesPath.put(path, repo); pathByRepositoryId.put(repo.getId(), path); } InMemorySourceRegistry(); @Override void registerRepositorySources(final Path path,
                                          final Repository repo); @Override List<Repository> getAllRepositories(); @Override List<Project> getAllProjects(final Repository repository); @Override void registerSource(final Repository repo,
                               final Source source); @Override void registerProject(final Source source,
                                final Project project);  }### Answer:
@Test public void testRegisterRepositorySources() { sourceRegistry.registerRepositorySources(path, repository); List<Repository> result = sourceRegistry.getAllRepositories(); assertTrue(result.contains(repository)); }