BasicResolutionJsonParser implements JsonParser<BasicResolution> { @Override public BasicResolution parse(JSONObject json) throws JSONException { final String name = json.getString("name"); final URI selfUri = JsonParseUtil.getSelfUri(json); return new BasicResolution(selfUri, name); }  @Override BasicResolution parse(JSONObject json);  }
@Test public void testParse() throws Exception { final BasicResolutionJsonParser parser = new BasicResolutionJsonParser(); final BasicResolution basicresolution = parser.parse(ResourceUtil.getJsonObjectFromResource("/json/resolution/valid.json")); Assert.assertEquals(new BasicResolution(TestUtil.toUri("http: }