RepositoryConfigurations { public boolean containsConfiguration(RepositoryName repositoryName) { return repositoryConfigurations.containsKey(repositoryName); }  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 containsConfiguration() { configs.add(cheeseConfig); configs.add(hamConfig); assertThat(configs.containsConfiguration(new RepositoryName("cheese")), is(true)); }