@Test void testHasRepositoryCollection() { RepositoryCollection repositoryCollection = mock(RepositoryCollection.class); String repositoryCollectionName = "MyRepositoryCollectionName"; when(repositoryCollection.getName()).thenReturn(repositoryCollectionName); repositoryCollectionRegistry.addRepositoryCollection(repositoryCollection); assertTrue(repositoryCollectionRegistry.hasRepositoryCollection(repositoryCollectionName)); }
public boolean hasRepositoryCollection(String name) { return repoCollectionMap.containsKey(name); }
RepositoryCollectionRegistry { public boolean hasRepositoryCollection(String name) { return repoCollectionMap.containsKey(name); } }
RepositoryCollectionRegistry { public boolean hasRepositoryCollection(String name) { return repoCollectionMap.containsKey(name); } RepositoryCollectionRegistry(
      RepositoryCollectionDecoratorFactory repoCollectionDecoratorFactory); }
RepositoryCollectionRegistry { public boolean hasRepositoryCollection(String name) { return repoCollectionMap.containsKey(name); } RepositoryCollectionRegistry(
      RepositoryCollectionDecoratorFactory repoCollectionDecoratorFactory); Stream<RepositoryCollection> getRepositoryCollections(); void addRepositoryCollection(RepositoryCollection repoCollection); RepositoryCollection getRepositoryCollection(String name); boolean hasRepositoryCollection(String name); RepositoryCollection getDefaultRepoCollection(); }
RepositoryCollectionRegistry { public boolean hasRepositoryCollection(String name) { return repoCollectionMap.containsKey(name); } RepositoryCollectionRegistry(
      RepositoryCollectionDecoratorFactory repoCollectionDecoratorFactory); Stream<RepositoryCollection> getRepositoryCollections(); void addRepositoryCollection(RepositoryCollection repoCollection); RepositoryCollection getRepositoryCollection(String name); boolean hasRepositoryCollection(String name); RepositoryCollection getDefaultRepoCollection();  }