ConfigurationManager implements StoragesConfigurationManager { public Configuration getConfiguration() { return configurationService.getConfiguration(); }  Repository getRepository(String storageAndRepositoryId); Repository getRepository(String storageId,
                                    String repositoryId); Storage getStorage(String storageId); Configuration getConfiguration(); URI getBaseUri(); Integer getSessionTimeoutSeconds();  }
@Test public void testParseConfiguration() { final Configuration configuration = configurationManager.getConfiguration(); assertThat(configuration).isNotNull(); assertThat(configuration.getStorages()).isNotNull(); assertThat(configuration.getRoutingRules()).isNotNull(); for (String storageId : configuration.getStorages().keySet()) { assertThat(storageId).as("Storage ID was null!").isNotNull(); } assertThat(configuration.getStorages()).as("Unexpected number of storages!").isNotEmpty(); assertThat(configuration.getVersion()).as("Incorrect version!").isNotNull(); assertThat(configuration.getPort()).as("Incorrect port number!").isEqualTo(48080); assertThat(configuration.getStorages() .get(STORAGE0) .getRepositories() .get("snapshots") .isSecured()) .as("Repository should have required authentication!") .isTrue(); assertThat(configuration.getStorages() .get(STORAGE0) .getRepositories() .get("releases") .allowsDirectoryBrowsing()) .isTrue(); }