@Test
    void testMap() {
        String json = "[{\"key\":\"k1\",\"value\":\"v1\"},{\"key\":\"k2\",\"value\":\"v2\"}]";
        JSONString js = new JSONString(json);
        String correct = "\n"
                + "      <item><key>k1</key><value>v1</value></item>\n"
                + "      <item><key>k2</key><value>v2</value></item>\n    ";
        assertEquals(correct, js.toString());

        Inspector top = new Value.ArrayValue()
                .add(new Value.ObjectValue()
                        .put("key", "k1")
                        .put("value", "v1"))
                .add(new Value.ObjectValue()
                        .put("key", "k2")
                        .put("value", "v2"));
        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