### Question:
ItemUtils { public static List<Item> parseJSONToMultipleItems(JSONObject jsonResult) throws JSONException{ JSONArray entityArrayJSON = jsonResult.getJSONArray("entity"); List<Item> list = new ArrayList<Item>(); for (int i = 0; i < entityArrayJSON.length(); i++) { Item item = new Item(); item.setUrl(((JSONObject) entityArrayJSON.get(i)).getString("url")); item.setEntity(parseJSONToEntity((JSONObject) entityArrayJSON.get(i))); list.add(item); } return list; }  static Item parseJSONToItem(JSONObject jsonResult); static List<Item> parseJSONToMultipleItems(JSONObject jsonResult); static String convertAlbumEntityToJSON(Entity entity); static String convertPhotoEntityToJSON(Entity entity); static NameValuePair convertJSONStringToNameValuePair(String value); static String convertJsonResultToApiKey(String jsonResult); static String convertJsonStringToUrl(String jsonResult); static Integer getItemIdFromUrl(String createdAlbumUrl);  }### Answer:
@Test public void parseJSONToMultipleItems() throws IOException, JSONException { URL resource = Resources.getResource("tree-album-1.json"); String string = Resources.toString(resource, Charsets.UTF_8); JSONObject jsonResult = (JSONObject) new JSONTokener(string) .nextValue(); List<Item> items = ItemUtils.parseJSONToMultipleItems(jsonResult); assertEquals("http: assertEquals(1311332015,items.get(0).getEntity().getUpdated() ); assertEquals("http: assertEquals(1311332144,items.get(1).getEntity().getUpdated() ); assertEquals("http: assertEquals(1319238331,items.get(2).getEntity().getUpdated() ); }