Server extends SimpleRestServer { static Configuration loadConfiguration() { Iterator<ConfigurationProvider> providers = ServiceLoader.load(ConfigurationProvider.class).iterator(); if (!providers.hasNext()) { throw new IllegalStateException("No configuration provider found"); } return providers.next().getConfiguration(); } Server();   Server(Configuration configuration);  @SuppressWarnings("WeakerAccess")
    static final int DEFAULT_PORT; @SuppressWarnings("WeakerAccess")
    static final String DEFAULT_CONTEXT_PATH; }
@Test @DisplayName("Loads configuration from the ServerConfigurationProvider") void testLoadConfiguration() { assertThat(Server.loadConfiguration()).isSameAs(configuration); }