@Test
    public void testCreateIfNonExistentInPut() {
        JsonReader r = createReader("""
                                    [
                                      {
                                        "create":true,
                                        "fields": {
                                          "something": "smoketest",
                                          "nalle": "bamse"
                                        },
                                        "put": "id:unittest:smoke::whee"
                                      }
                                    ]
                                    """);
        var op = r.next();
        var put = (DocumentPut) op;
        assertTrue(put.getCreateIfNonExistent());
    }
Basic test of JSON streams to Vespa document instances.

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