@Test
    public void testOldMapStringToArrayOfInt() throws IOException {
        Document doc = docFromJson("""
                                   {
                                     "put": "id:unittest:testMapStringToArrayOfInt::whee",
                                     "fields": {
                                       "actualMapStringToArrayOfInt": [
                                         {
                                           "key": "bamse",
                                           "value": [1, 2, 3]
                                         }
                                       ]
                                     }
                                   }
                                   """);
        FieldValue f = doc.getFieldValue("actualMapStringToArrayOfInt");
        assertSame(MapFieldValue.class, f.getClass());
        MapFieldValue<?, ?> m = (MapFieldValue<?, ?>) f;
        Array<?> a = (Array<?>) m.get(new StringFieldValue("bamse"));
        assertEquals(3, a.size());
        assertEquals(new IntegerFieldValue(1), a.get(0));
        assertEquals(new IntegerFieldValue(2), a.get(1));
        assertEquals(new IntegerFieldValue(3), a.get(2));
    }
Basic test of JSON streams to Vespa document instances.

@author Steinar Knutsen
@author bratseth
document/src/test/java/com/yahoo/document/json/JsonReaderTestCase.java