### Question:
TumbleJ { public JSONArray getPosts() throws JSONException { logger.info("Get Posts from " + baseHostname); WebResource resource = client.resource("http: JSONObject response = resource.queryParam("api_key", consumerKey).get(JSONObject.class); JSONArray posts = response.getJSONObject("response").getJSONArray("posts"); return posts; } TumbleJ();  TumbleJ(String consumerKey, String consumerSecret, String baseHostname);  TumbleJ(String consumerKey, String consumerSecret, String baseHostname,
			String accessToken, String accessTokenSecret);  TumbleJ(String tumblogUrl); void setTumblogUrl(String tumblogUrl); void setNumberOfPosts(String numberOfPosts); void setStartPostNo(String startPostNo); void setPostType(String postType); JSONObject postText(String title, String body, String tags, String date); JSONObject postPhoto(String caption, String source, String link,
			String tags, String date); JSONObject postPhotoData(String caption, byte[] data, String link, String tags, String date); JSONObject postQuote(String quote, String source, String tags, String date); JSONObject postLink(String name, String url, String description,
			String tags, String date); JSONObject postChat(String title, String conversation,
			String tags, String date); JSONObject postAudio(String externalUrl, String caption, String tags,
			String date); JSONObject postAudioData(byte[] data, String caption, String tags,
			String date); JSONObject postVideo(String embed, String caption, String tags,
			String date); JSONObject postVideoData(byte[] data, String caption, String tags,
			String date); JSONObject post(String type, String tags, String date,
			Map<String, Object> params); Post[] readPosts(); static void main(String args[]); JSONArray getPosts(); void init(); String getConsumerKey(); void setConsumerKey(String consumerKey); String getConsumerSecret(); void setConsumerSecret(String consumerSecret); String getToken(); void setToken(String token); String getTokenSecret(); void setTokenSecret(String tokenSecret);  }### Answer:
@Test public void testGetPosts() throws JSONException { assertNotNull(tj.getPosts()); }