### Question:
UserProfilesResource extends Resource { public CallSpec<List<XingUser>, HttpError> getUsersById(List<String> ids) { return Resource.<List<XingUser>, HttpError>newGetSpec(api, "/v1/users/{ids}") .pathParam("ids", ids) .responseAs(list(XingUser.class, "users")) .build(); } UserProfilesResource(XingApi api); CallSpec<List<XingUser>, HttpError> getUsersById(List<String> ids); CallSpec<XingUser, HttpError> getUserById(String id); CallSpec<XingUser, HttpError> getOwnProfile(); CallSpec<XingUser, HttpError> getOwnIdCard(); CallSpec<List<XingUser>, HttpError> findUsersByEmail(List<String> emails); @Experimental CallSpec<List<XingUser>, HttpError> findUsersByKeyword(String keywords); CallSpec<ProfileMessage, HttpError> getUserProfileMessage(String userId); CallSpec<ProfileMessage, HttpError> getOwnProfileMessage(); CallSpec<String, HttpError> getUserLegalInformation(String userId); CallSpec<String, HttpError> getOwnLegalInformation();  }### Answer:
@Test public void getUsersById() throws Exception { server.enqueue(new MockResponse().setBody("{\n" + " \"users\": [\n" + " \n" + userJson + ", " + userJson + " ]\n" + '}')); List<String> ids = new ArrayList<>(); ids.add("some_id"); ids.add("another_id"); Response<List<XingUser>, HttpError> response = resource.getUsersById(ids).execute(); assertThat(response.body().size()).isEqualTo(2); }