@Test
    void testSimpleArrays() {
        String json = "[1, 2, 3]";
        JSONString js = new JSONString(json);
        String correct = "\n"
                + "      <item>1</item>\n"
                + "      <item>2</item>\n"
                + "      <item>3</item>\n    ";
        assertEquals(correct, js.toString());

        Inspector top = new Value.ArrayValue()
                .add(1).add(2).add(3);
        js = new JSONString(top);
        assertEquals(correct, js.renderFromInspector());

        json = "[1.0, 2.0, 3.0]";
        js = new JSONString(json);
        correct = "\n"
                + "      <item>1.0</item>\n"
                + "      <item>2.0</item>\n"
                + "      <item>3.0</item>\n    ";
        assertEquals(correct, js.toString());
        top = new Value.ArrayValue()
                .add(1.0).add(2.0).add(3.0);
        js = new JSONString(top);
        assertEquals(correct, js.renderFromInspector());

        json = "[\"a\", \"b\", \"c\"]";
        correct = "\n"
                + "      <item>a</item>\n"
                + "      <item>b</item>\n"
                + "      <item>c</item>\n    ";
        js = new JSONString(json);
        assertEquals(correct, js.toString());

        top = new Value.ArrayValue()
                .add("a").add("b").add("c");
        js = new JSONString(top);
        assertEquals(correct, js.renderFromInspector());
    }
Tests the JSONString XML rendering.

TODO: Add correct answers. These are not added because this code was checked in before sync with system test

@author Steinar Knutsen
container-search/src/test/java/com/yahoo/prelude/hitfield/test/JSONStringTestCase.java