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