### Question:
ProfileEditingResource extends Resource { public CallSpec<List<String>, HttpError> addQualification(String description) { return Resource.<List<String>, HttpError>newPostSpec( api, "/v1/users/me/educational_background/qualifications", false) .responseAs(list(String.class, "qualifications")) .queryParam("description", description) .build(); } ProfileEditingResource(XingApi api); CallSpec<XingUser, HttpError> updateGeneralInformation(); CallSpec<Void, HttpError> updateProfilePicture(PictureUpload pictureUpload); CallSpec<Void, HttpError> updateProfilePicture(RequestBody body); CallSpec<Void, HttpError> deleteProfilePicture(); @Experimental CallSpec<UploadProgress, HttpError> getPictureUploadProgress(); CallSpec<Void, HttpError> updatePrivateAddress(); CallSpec<Void, HttpError> updatePrivateAddress(Address address); CallSpec<Void, HttpError> updateBusinessAddress(); CallSpec<Void, HttpError> updateBusinessAddress(Address address); CallSpec<School, HttpError> addSchool(String name); CallSpec<School, HttpError> addSchool(School school); CallSpec<School, HttpError> updateSchool(String schoolId); CallSpec<Void, HttpError> deleteSchool(String schoolId); CallSpec<Void, HttpError> setSchoolAsPrimary(String schoolId); CallSpec<List<String>, HttpError> addQualification(String description); CallSpec<Company, HttpError> addCompany(String name, String title, FormOfEmployment formOfEmployment); CallSpec<Company, HttpError> updateCompany(String companyId); CallSpec<Void, HttpError> deleteCompany(String companyId); CallSpec<Void, HttpError> setCompanyAsPrimary(String companyId); @Experimental CallSpec<Void, HttpError> updateAwards(List<Award> awards); CallSpec<Void, HttpError> updateLanguageSkill(Language language, LanguageSkill skill); CallSpec<Void, HttpError> deleteLanguage(Language language); CallSpec<Void, HttpError> updateBirthDate(Calendar calendar); @Experimental CallSpec<Void, HttpError> updateWebProfile(WebProfile profile, List<String> urls); CallSpec<Void, HttpError> deleteWebProfile(WebProfile profile); @Experimental CallSpec<Void, HttpError> updateMessagingAccount(MessagingAccount account, String name); @Experimental CallSpec<Void, HttpError> deleteMessagingAccount(MessagingAccount account); @Experimental CallSpec<Void, HttpError> updateLegalInfo(String legalInfo); CallSpec<Void, HttpError> updateUsersProfileMessage(String userId, String message);  }### Answer:
@Test public void addQualification() throws Exception { server.enqueue(new MockResponse().setResponseCode(201).setBody("{\n" + " \"qualifications\": [\n" + " \"API programming champion 2016\",\n" + " \"Linux Daemons\"\n" + " ]\n" + '}')); Response<List<String>, HttpError> response = resource.addQualification("Some desc").execute(); assertThat(response.body().size()).isEqualTo(2); assertThat(response.body().get(1)).isEqualTo("Linux Daemons"); }