@Test
public void shouldLoadDatabaseFromConfiguration() throws Exception {

    String pathToStorage = "target/repo/Library/content";
    FileUtil.delete(pathToStorage);
    // Create the repository configuration ...
    String configFilePath = "config/repo-config-inmemory-local-environment.json";
    InputStream configFileStream = getClass().getClassLoader().getResourceAsStream(configFilePath);
    RepositoryConfiguration repositoryConfiguration = RepositoryConfiguration.read(configFileStream, "doesn't matter");
    LocalEnvironment environment = new LocalEnvironment();
    assertNotNull(environment.getDb(repositoryConfiguration.getPersistenceConfiguration()));
}