BookmarksResource extends Resource { public CallSpec<Void, HttpError> createOwnBookmark(String userId) { return Resource.<Void, HttpError>newPutSpec(api, "/v1/users/me/bookmarks/{id}", false) .responseAs(Void.class) .pathParam("id", userId) .build(); } BookmarksResource(XingApi api); CallSpec<List<Bookmark>, HttpError> getListOfOwnBookmarks(); CallSpec<Void, HttpError> createOwnBookmark(String userId); CallSpec<Void, HttpError> deleteOwnBookmark(String userId);  }
@Test public void createOwnBookmark() throws Exception { testVoidSpec(resource.createOwnBookmark("some_id")); }