public void DiscoverServerInstances_FailsFast()
        {
            var values = new Dictionary <string, string>()
            {
                { "spring:cloud:config:discovery:enabled", "True" },
                { "spring:cloud:config:failFast", "True" },
                { "eureka:client:eurekaServer:retryCount", "0" }
            };

            IConfiguration configuration = new ConfigurationBuilder()
                                           .AddInMemoryCollection(values)
                                           .Build();

            var settings = new ConfigServerClientSettings
            {
                Uri         = "http://localhost:8888/",
                Name        = "foo",
                Environment = "development",
                Timeout     = 10
            };
            var source   = new ConfigServerConfigurationSource(settings, configuration);
            var provider = new ConfigServerConfigurationProvider(source);
            var service  = new ConfigServerDiscoveryService(configuration, settings);

            Assert.Throws <ConfigServerException>(() => provider.DiscoverServerInstances(service));
        }