MarvelRequestParser { public static String getItemThumbnailUrl(JSONObject object) throws JSONException { Gson gson = new Gson(); return gson.fromJson(((JSONObject) object.getJSONObject("data").getJSONArray("results").get(0)).getJSONObject("thumbnail").toString(), Thumbnail.class).getUrl(); }  static String getItemThumbnailUrl(JSONObject object); static String getResourceUri(JSONObject object); static String getName(JSONObject object); static String getTitle(JSONObject object);  }
@Test public void testGetItemThumbnailUrl() throws JSONException, ParseException { String result = MarvelRequestParser.getItemThumbnailUrl(this.prepareTestingObject()); assertEquals(REFERENCE_URL, result); }