JcrRepositoriesContainer implements RepositoriesContainer { @Override public Future<Boolean> shutdownRepository(String repositoryName) throws RepositoryException { return ENGINE.shutdownRepository(repositoryName); }  @Override @SuppressWarnings( {"unchecked", "rawtypes"} ) JcrRepository getRepository( String repositoryName,
                                        Map parameters ); @Override Set<String> getRepositoryNames( Map<?, ?> parameters ); @Override Future<Boolean> shutdown(); @Override boolean shutdown( long timeout,
                             TimeUnit unit ); @Override Future<Boolean> shutdownRepository(String repositoryName);  }
@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()); }