@Test
    public void readSingleDocumentsUpdateStreaming() throws IOException {
        String json = """
                      {
                        "remove": "id:unittest:smoke::ignored",
                        "ignored-extra-array": [{ "foo": null }, { }],
                        "ignored-extra-object": { "foo": [null, { }], "bar": { } },
                        "fields": {
                          "something": { "assign": "smoketest" },
                          "flag": { "assign": true },
                          "nalle": { "assign": "bamse" }
                        },
                        "id": "id:unittest:smoke::ignored",
                        "create": true,
                        "condition": "false"
                      }
                      """;
        ParsedDocumentOperation operation = createReader(json).readSingleDocumentStreaming(DocumentOperationType.UPDATE,"id:unittest:smoke::doc1");
        Document doc = new Document(types.getDocumentType("smoke"), new DocumentId("id:unittest:smoke::doc1"));
        DocumentUpdate update = ((DocumentUpdate) operation.operation());
        update.applyTo(doc);
        smokeTestDoc(doc);
        assertTrue(update.getCreateIfNonExistent());
        assertEquals("false", update.getCondition().getSelection());
    }
Basic test of JSON streams to Vespa document instances.

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