@Test
public void testParseConfiguration()
{

    final Configuration configuration = configurationManager.getConfiguration();
    assertThat(configuration).isNotNull();
    assertThat(configuration.getStorages()).isNotNull();
    assertThat(configuration.getRoutingRules()).isNotNull();
    // assertThat(configuration.getRoutingRules().getWildcardAcceptedRules().getRoutingRules().isEmpty()).isFalse();
    // assertThat(configuration.getRoutingRules().getWildcardDeniedRules().getRoutingRules().isEmpty()).isFalse();
    for (String storageId : configuration.getStorages().keySet())
    {
        assertThat(storageId).as("Storage ID was null!").isNotNull();
        // assertThat(!configuration.getStorages().get(storageId).getRepositories().isEmpty()).as("No repositories were parsed!").isTrue();
    }
    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();
}