UserTemplate extends AbstractGitHubOperations implements UserOperations { public String getProfileUrl() { return "https: } UserTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser); List<GitHubUser> getFollowers(String user); List<GitHubUser> getFollowing(String user); String getProfileId(); GitHubUserProfile getUserProfile(); String getProfileUrl();  }
@Test public void getProfileUrl() { mockServer.expect(requestTo("https: .andExpect(header("Authorization", "Bearer ACCESS_TOKEN")) .andRespond(withSuccess(new ClassPathResource("profile.json", getClass()), MediaType.APPLICATION_JSON)); assertEquals("https: }