### Question:
BoolParser { public static Bool parse(JSONObject json, String key) { return json.has(key) ? new Bool(json.optBoolean(key)) : new NullBool(); }  static Bool parse(JSONObject json, String key); static Bool parseFirst(JSONObject json, String... keys);  }### Answer:
@Test public void parse() throws JSONException { JSONObject json = new JSONObject(); json.put("value", true); assertThat(BoolParser.parse(json, "value").get()).isTrue(); }