RepositoryConfigurations { public Collection<RepositoryConfiguration> getAllConfigurations() { return repositoryConfigurations.values(); }  void add(RepositoryConfiguration repositoryConfiguration); RepositoryConfiguration getConfiguration(RepositoryName name); RepositoryConfiguration remove(RepositoryName name); Collection<RepositoryConfiguration> getAllConfigurations(); boolean containsConfiguration(RepositoryName repositoryName); Set<RepositoryName> getAllConfigurationNames(); int count(); ConfigsDiff diffByRepositoryName(RepositoryConfigurations configsToCompare); void apply(ConfigsDiff diff);  }
@Test public void getAllConfigurations() { configs.add(cheeseConfig); configs.add(hamConfig); Collection<RepositoryConfiguration> allConfigs = configs.getAllConfigurations(); assertThat(allConfigs.size(), is(2)); }