GithubClient { public GithubService getGithubService() { return retrofit.create(GithubService.class); } GithubClient(GithubExtension githubExtension, OkHttpClient okHttpClient); GithubService getGithubService();  }
@Test void getGithubService() throws IOException { GithubService githubService = githubClient.getGithubService(); Response<Repo> response = githubService.getRepository("freefair/gradle-plugins").execute(); String remaining = response.headers().get("X-RateLimit-Remaining"); if (Objects.equals(remaining, "0")) { return; } assertThat(response.isSuccessful()).isTrue(); Repo repo = response.body(); assertThat(repo.getHtml_url()).contains("freefair"); }