InMemoryRegistryRepository implements RegistryRepository { @Override public Set<String> getKnownNames() { return registry.keySet(); }  @Override void createOrUpdate(Registry registry); @Override void delete(final String name); @Override Set<String> getKnownNames(); @Override Registry get(final String registryName); @Override void clear(); final ConcurrentMap<String, Registry> registry; }
@Test public void emptyRegistriesShouldReturnEmptyNameList() { final RegistryRepository registries = new InMemoryRegistryRepository(); final Set<String> knownRegistryNames = registries.getKnownNames(); assertEquals(knownRegistryNames, emptySet()); }