DependencyConfiguration { public static void setHttpClient(HttpClient httpClient) { sHttpClient = httpClient; } DependencyConfiguration(); static HttpClient getHttpClient(); static void setHttpClient(HttpClient httpClient);  }
@Test public void setDependencyCallUsesInjectedHttpClient() throws Exception { HttpClient mockHttpClient = mock(HttpClient.class); DependencyConfiguration.setHttpClient(mockHttpClient); AppCenter.start(mApplication, DUMMY_APP_SECRET); verifyNew(DefaultChannel.class).withArguments(any(Context.class), eq(DUMMY_APP_SECRET), any(LogSerializer.class), eq(mockHttpClient), any(Handler.class)); }