@Test public void testCreateJSONObjectFromJsonObject() throws JSONException { resultString = "{\"testID\":\"{id=testID;name=testName;isCustomDirectConnect=false;directConnect=false;isCustomGreeting=false;isCustomForwarding=false;greetingId=0;disabledForwardingIds=[]}\"}"; testGroupObject.put("obj1", testJSONOb1); final JSONObject testObject = Group.createJSONObjectFromJsonObject(testGroupObject); Assert.assertEquals(resultString, testObject.toString()); }