TeamsTemplate extends AbstractGithubTemplate implements TeamsOperations { @Override public Team getTeam(long teamId) { Map<String, Object> uriVariables = new HashMap<>(); uriVariables.put("teamid", teamId); return getRestOperations().getForObject(buildUri("/teams/{teamid}", uriVariables), Team.class); } TeamsTemplate(RestOperations restOperations, GithubApiUriUtil uriUtil);  TeamsTemplate(RestOperations restOperations); @Override List<Team> listTeams(String organization); @Override Team getTeam(long teamId); @Override Team createTeam(String organization, TeamRequest teamRequest); @Override Team updateTeam(long teamId, TeamRequest teamRequest); @Override void deleteTeam(long teamId);  }
@Test public void getTeam() throws Exception { mockServer.expect(requestTo("https: .andRespond(withSuccess(new ClassPathResource("getTeam.json", getClass()), MediaType.APPLICATION_JSON)); Team team = teamsTemplate.getTeam(1); Assertions.assertThat(team).isNotNull(); Assertions.assertThat(team.getId()).isEqualTo(1); Assertions.assertThat(team.getName()).isEqualTo("Justice League"); }