@Test void testGetDefaultRepoCollection() { RepositoryCollection decoratedRepositoryCollection = mock(RepositoryCollection.class); RepositoryCollection defaultRepositoryCollection = mock(RepositoryCollection.class); when(repositoryCollectionDecoratorFactory.createDecoratedRepositoryCollection( defaultRepositoryCollection)) .thenReturn(decoratedRepositoryCollection); repositoryCollectionRegistry.setDefaultRepoCollection(defaultRepositoryCollection); assertEquals( decoratedRepositoryCollection, repositoryCollectionRegistry.getDefaultRepoCollection()); }
public RepositoryCollection getDefaultRepoCollection() { return repoCollectionDecoratorFactory.createDecoratedRepositoryCollection( defaultRepoCollection); }
RepositoryCollectionRegistry { public RepositoryCollection getDefaultRepoCollection() { return repoCollectionDecoratorFactory.createDecoratedRepositoryCollection( defaultRepoCollection); } }
RepositoryCollectionRegistry { public RepositoryCollection getDefaultRepoCollection() { return repoCollectionDecoratorFactory.createDecoratedRepositoryCollection( defaultRepoCollection); } RepositoryCollectionRegistry(
      RepositoryCollectionDecoratorFactory repoCollectionDecoratorFactory); }
RepositoryCollectionRegistry { public RepositoryCollection getDefaultRepoCollection() { return repoCollectionDecoratorFactory.createDecoratedRepositoryCollection( defaultRepoCollection); } RepositoryCollectionRegistry(
      RepositoryCollectionDecoratorFactory repoCollectionDecoratorFactory); Stream<RepositoryCollection> getRepositoryCollections(); void addRepositoryCollection(RepositoryCollection repoCollection); RepositoryCollection getRepositoryCollection(String name); boolean hasRepositoryCollection(String name); RepositoryCollection getDefaultRepoCollection(); }
RepositoryCollectionRegistry { public RepositoryCollection getDefaultRepoCollection() { return repoCollectionDecoratorFactory.createDecoratedRepositoryCollection( defaultRepoCollection); } RepositoryCollectionRegistry(
      RepositoryCollectionDecoratorFactory repoCollectionDecoratorFactory); Stream<RepositoryCollection> getRepositoryCollections(); void addRepositoryCollection(RepositoryCollection repoCollection); RepositoryCollection getRepositoryCollection(String name); boolean hasRepositoryCollection(String name); RepositoryCollection getDefaultRepoCollection();  }