MarvelRequestParser { public static String getName(JSONObject object) throws JSONException { return ((JSONObject) object.getJSONObject("data").getJSONArray("results").get(0)).getString("name"); }  static String getItemThumbnailUrl(JSONObject object); static String getResourceUri(JSONObject object); static String getName(JSONObject object); static String getTitle(JSONObject object);  }
@Test public void testGetName() throws JSONException, ParseException { String result = MarvelRequestParser.getName(this.prepareTestingObject()); assertEquals(REFERENCE_NAME, result); }