MembersTemplate extends AbstractGithubTemplate implements MembersOperations { @Override public List<User> listMembers(String organization) { Map<String, Object> uriVariables = new HashMap<>(); uriVariables.put("organization", organization); return fetchUsers("/orgs/{organization}/members?per_page=25", uriVariables); } MembersTemplate(RestOperations restOperations, GithubApiUriUtil uriUtil);  MembersTemplate(RestOperations restOperations); @Override List<User> listMembers(String organization); @Override List<User> listPublicMembers(String organization); @Override boolean isMemberOfOrganization(String organization, String username); @Override boolean isPublicMemberOfOrganization(String organization, String username); @Override void removeFromOrganization(String organization, String username);  }
@Test public void listMembers() throws Exception { mockServer.expect(requestTo("https: .andExpect(method(HttpMethod.GET)) .andRespond( withSuccess(new ClassPathResource("listMembers.json", getClass()), MediaType.APPLICATION_JSON)); List<User> issueList = membersTemplate.listMembers("zalando-stups"); Assertions.assertThat(issueList).isNotNull(); Assertions.assertThat(issueList.size()).isEqualTo(1); }