RecommendationsResource extends Resource { public CallSpec<Void, HttpError> blockRecommendation(String userId) { return Resource.<Void, HttpError>newDeleteSpec(api, "/v1/users/me/network/recommendations/user/{id}", false) .pathParam("id", userId) .responseAs(Void.class) .build(); } RecommendationsResource(XingApi api); CallSpec<List<XingUser>, HttpError> getOwnRecommendations(); CallSpec<List<XingUser>, HttpError> getRecommendations(String userId); CallSpec<Void, HttpError> blockRecommendation(String userId);  }
@Test public void blockRecommendation() throws Exception { testVoidSpec(resource.blockRecommendation("some_id")); }