HttpClientModule extends AbstractApolloModule { public static ApolloModule create() { return new HttpClientModule(); } private  HttpClientModule(); static ApolloModule create(); @Override String getId();  }
@Test public void testOkHttpClientIsConfigured() throws Exception { final Config config = ConfigFactory.parseString("http.client.connectTimeout: 7982"); final Service service = Services.usingName("test") .withModule(HttpClientModule.create()) .build(); try (Service.Instance i = service.start(new String[] {}, config)) { final OkHttpClient underlying = i.resolve(OkHttpClient.class); assertThat(underlying.getConnectTimeout(), is(7982)); } }