Parser { Data parseObject(final JSONObject jsonObject) { return new Data(jsonObject.optInt("id")); }  List<Data> getModels(final InputStream inputStream);  }
@Test public void shouldParseObject() throws JSONException { Data model = mParser.parseObject(new JSONObject("{\"id\":1}")); assertEquals(1, model.getId()); }