protected void assertProcessingWorks(DocprocService service) {
        // Create documents
        DocumentType type = new DocumentType("test");
        type.addField("test", DataType.STRING);
        DocumentPut put1 = new DocumentPut(type, new DocumentId("id:test:test::1"));
        DocumentPut put2 = new DocumentPut(type, new DocumentId("id:test:test::2"));
        DocumentPut put3 = new DocumentPut(type, new DocumentId("id:test:test::3"));

        // Process them
        service.process(put1);
        service.process(put2);
        service.process(put3);
        while (service.doWork()) {}

        // Verify
        assertEquals(new StringFieldValue("done"), put1.getDocument().getFieldValue("test"));
        assertEquals(new StringFieldValue("done"), put2.getDocument().getFieldValue("test"));
        assertEquals(new StringFieldValue("done"), put3.getDocument().getFieldValue("test"));
    }
Asserts that a document processing service works
docproc/src/test/java/com/yahoo/docproc/DocumentProcessingAbstractTestCase.java