JSONObject bookmark = new JSONObject();
bookmark.put("uri", "http://java.sun.com").put("sdesc", "test desc").put("ldesc", "long test description");
webResource.type("application/json").post(bookmark);
JSONArray bookmarks = webResource.accept("application/json").get(JSONArray.class);
assertTrue(bookmarks != null);
int bookmarksSize = bookmarks.length();
String testBookmarkUrl = bookmarks.getString(0);
WebResource bookmarkResource = client().resource(testBookmarkUrl);