ChainedProxySelector { @VisibleForTesting static List<String> proxyNames() { List<String> proxyKeys = Lists.newArrayList(ConfigLoader.config().subset("proxy").getKeys()); Set<String> proxyNames = Sets.newHashSet(); proxyNames.remove("local"); for (String proxyKey : proxyKeys) { proxyNames.add(proxyKey.split("\\.")[0]); } return Lists.newArrayList(proxyNames); }  static synchronized List<ChainedProxy> forRequest(HttpRequest request);  }
@Test public void should_constructProxiesFromProperties() { assertThat(ChainedProxySelector.proxyNames(), containsInAnyOrder("aws", "bluecoat", "local")); }