@Test
public void shouldReturnRepositoryNames() throws Exception {

    assertTrue(repositoriesContainer.getRepositoryNames(null).isEmpty());
    String url = "file:src/test/resources/config/simple-repo-config.json";
    Map<String, String> params = new HashMap<String, String>();
    params.put(RepositoryFactory.URL, url);
    Set<String> repositoryNames = repositoriesContainer.getRepositoryNames(params);
    Assert.assertTrue(repositoryNames.contains("Another Test Repository"));
    url = "file:src/test/resources/config/repo-config.json";
    params.put(RepositoryFactory.URL, url);
    repositoryNames = repositoriesContainer.getRepositoryNames(params);
    Assert.assertEquals(2, repositoryNames.size());
    Assert.assertTrue(repositoryNames.contains("Another Test Repository"));
    Assert.assertTrue(repositoryNames.contains("CND Sequencer Test Repository"));
}