ProfileVisitsResource extends Resource { public CallSpec<Void, HttpError> createProfileVisits(String userId) { return Resource.<Void, HttpError>newPostSpec(api, "v1/users/{user_id}/visits", false) .responseAs(Void.class) .pathParam("user_id", userId) .build(); } ProfileVisitsResource(XingApi api); CallSpec<List<ProfileVisit>, HttpError> getUsersProfileVisits(String userId); CallSpec<List<ProfileVisit>, HttpError> getOwnProfileVisits(); CallSpec<Void, HttpError> createProfileVisits(String userId);  }
@Test public void createProfileVisits() throws Exception { testVoidSpec(resource.createProfileVisits("some_id")); }