BasicIssueJsonParser implements JsonParser<BasicIssue> { @Override public BasicIssue parse(JSONObject json) throws JSONException { final URI selfUri = JsonParseUtil.getSelfUri(json); final String key = json.getString("key"); return new BasicIssue(selfUri, key); }  @Override BasicIssue parse(JSONObject json);  }
@Test public void testParse() throws Exception { BasicIssueJsonParser parser = new BasicIssueJsonParser(); final BasicIssue basicIssue = parser.parse(ResourceUtil.getJsonObjectFromResource("/json/search/issues1.json").getJSONArray("issues").getJSONObject(0)); assertEquals(new BasicIssue(toUri("http: }