@@ -0,0 +1,1058 @@
+package com.kii.thingif.internal.gson;%0A%0Aimport com.google.gson.Gson;%0Aimport com.google.gson.GsonBuilder;%0Aimport com.google.gson.JsonObject;%0A%0Aimport junit.framework.Assert;%0A%0Aimport org.json.JSONObject;%0Aimport org.junit.Test;%0A%0Apublic class JSONObjectAdapterTest %7B%0A    private Gson gson = new GsonBuilder()%0A            .registerTypeAdapter(JSONObject.class, new JSONObjectAdapter())%0A            .create();%0A    @Test%0A    public void serializationTest() throws Exception%7B%0A        JSONObject json = new JSONObject().put(%22k%22, %22v%22);%0A        JsonObject expectedJson = new JsonObject();%0A        expectedJson.addProperty(%22k%22, %22v%22);%0A        Assert.assertEquals(expectedJson.toString(), gson.toJson(json));%0A    %7D%0A%0A    @Test%0A    public void deserializationTest() throws Exception%7B%0A        JSONObject expectedJson = new JSONObject().put(%22k%22, %22v%22);%0A        JsonObject json = new JsonObject();%0A        json.addProperty(%22k%22, %22v%22);%0A        Assert.assertEquals(%0A                expectedJson.toString(),%0A                gson.fromJson(json, JSONObject.class).toString());%0A    %7D%0A%7D%0A

Add test for JSONObjectAdapter