@Test
public void testDiff() {

    JSONObject first = new JSONObject()
            .put("foo", "bar")
            .put("hodor", "hodor");
    JSONObject second = new JSONObject()
            .put("foo", "bar")
            .put("hodor", "hodor!")
            .put("hold", "door");
    JSONObject patch = JSONUtils.diff(first, second);
    JSONObject patchedVer = JSONUtils.apply(first, patch);
    assertEquals(patchedVer.toString(),"{\"foo\":\"bar\",\"hodor\":\"hodor!\",\"hold\":\"door\"}");
}