@Test
public void shouldShutdownRepository() throws Exception {

    String url = "file:src/test/resources/config/simple-repo-config.json";
    Map<String, String> params = new HashMap<>();
    params.put(RepositoryFactory.URL, url);
    String repoName = "Another Test Repository";
    Repository repository = repositoryFor(repoName, params);
    assertNotNull(repository);
    assertTrue(repositoriesContainer.shutdownRepository(repoName).get());
}