BasicIssueTypeJsonParser implements JsonParser<BasicIssueType> { @Override public BasicIssueType parse(JSONObject json) throws JSONException { final URI selfUri = JsonParseUtil.getSelfUri(json); final String name = json.getString("name"); final boolean isSubtask = json.getBoolean("subtask"); return new BasicIssueType(selfUri, name, isSubtask); }  @Override BasicIssueType parse(JSONObject json);  }
@Test public void testParse() throws JSONException { BasicIssueTypeJsonParser parser = new BasicIssueTypeJsonParser(); final BasicIssueType issueType = parser.parse(ResourceUtil.getJsonObjectFromResource("/json/issueType/valid.json")); assertEquals(new BasicIssueType(toUri("http: }