@Test
    public void testCompleteFeedWithEmptyDoc() {
        JsonReader r = createReader("""
                                    [
                                      {
                                        "put": "id:unittest:smoke::whee",
                                        "fields": {}
                                      },
                                      {
                                        "update": "id:unittest:testarray::whee",
                                        "fields": {}
                                      },
                                      {
                                        "remove": "id:unittest:smoke::whee"
                                      }
                                    ]
                                    """);

        DocumentOperation d = r.next();
        Document doc = ((DocumentPut) d).getDocument();
        assertEquals("smoke", doc.getId().getDocType());

        d = r.next();
        DocumentUpdate update = (DocumentUpdate) d;
        assertEquals("testarray", update.getId().getDocType());

        d = r.next();
        DocumentRemove remove = (DocumentRemove) d;
        assertEquals("smoke", remove.getId().getDocType());

        assertNull(r.next());

    }
Basic test of JSON streams to Vespa document instances.

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