* Test append function to convert an existing value to an array.
*/
public void test_appendArray() {
Exception ex = null;
try {
JSONObject jObject = new JSONObject();
JSONArray array = new JSONArray();
array.add("Hello World.");
jObject.put("array", array);
JSONArray array1 = (JSONArray)jObject.get("array");
assertTrue(array1 != null);
assertTrue(array1 instanceof JSONArray);
assertTrue(array1 == array);
assertTrue(array1.size() == 1);
jObject.append("array", "Another string.");
JSONArray array2 = (JSONArray)jObject.get("array");
assertTrue(array2 != null);
assertTrue(array2 instanceof JSONArray);
assertTrue(array1 == array2);
assertTrue(array2.size() == 2);
} catch (Exception ex1) {