### Question:
PatchParser { List<PatchObject> parsePatch() throws PatchParserException { Gson gson = new GsonBuilder() .registerTypeAdapter(PATCH_OBJECT_LIST_TYPE, new PatchObjectTypeAdapter()) .create(); List<PatchObject> rawPatches; try { rawPatches = gson.fromJson(patchInput, PATCH_OBJECT_LIST_TYPE); } catch (JsonParseException jpe) { throw new PatchParserException("Error parsing patch" + patchInput, jpe); } rawParseObject.addAll(rawPatches); return rawPatches; } PatchParser(String input);   PatchParser(); static List<Patch> createDeleteModelAsPatches(Model model); static List<Patch> parse(String ldPatchJson); static List<Patch> createPatches(List<PatchObject> patch);  }### Answer:
@Test public void test_can_parse_plain_literal_data() throws PatchParserException{ List<PatchObject> expected = new ArrayList<>(); PatchObject po = new PatchObject(); po.setOperation(ADD_OPERATION); po.setSubject("http: po.setPredicate("http: po.setObjectValue("Housea"); expected.add(po); String data = "{" + " \"op\":\"" + ADD_OPERATION + "\"," + " \"s\":\"http: + " \"p\":\"http: + " \"o\":{\"value\":\"Housea\"}" + "}"; PatchParser p = new PatchParser(data); List<PatchObject> t1 = p.parsePatch(); assertEquals(t1.get(0).getObjectValue(), expected.get(0).getObjectValue()); }