@Test
    public void testEmbedBinarizeAndPack() {
        var documentTypes = new DocumentTypeManager();
        var test = new DocumentType("test");
        test.addField("myText", DataType.STRING);
        test.addField("embedding", new TensorDataType(TensorType.fromSpec("tensor<int8>(x[16])")));
        documentTypes.register(test);

        IlscriptsConfig.Builder config = new IlscriptsConfig.Builder();
        config.ilscript(new IlscriptsConfig.Ilscript.Builder().doctype("test")
                                                              .content("input myText | embed | binarize | pack_bits | attribute embedding")
                                                              .docfield("myText"));
        var scripts = new ScriptManager(documentTypes, new IlscriptsConfig(config), null,
                                        Chunker.throwsOnUse.asMap(),
                                        Map.of("test", new TestEmbedder()),
                                        FieldGenerator.throwsOnUse.asMap());
        
        assertNotNull(scripts.getScript(documentTypes.getDocumentType("test")));

        var tester = new IndexingProcessorTester(documentTypes, scripts);
        DocumentUpdate input = new DocumentUpdate(test, "id:ns:test::");
        input.addFieldUpdate(FieldUpdate.createAssign(test.getField("myText"), new StringFieldValue("my text")));
        DocumentUpdate output = (DocumentUpdate)tester.process(input);
        FieldUpdate embeddingUpdate = output.getFieldUpdate("embedding");
        AssignValueUpdate valueUpdate = (AssignValueUpdate)embeddingUpdate.getValueUpdate(0);
        assertEquals(Tensor.from("tensor<int8>(x[16]):[-110, 73, 36, -110, 73, 36, -110, 73, 36, -110, 73, 36, -110, 73, 36, -110]"),
                                 valueUpdate.getValue().getWrappedValue());
    }
Test sending assign of 1 field only, when needing 2.
TODO Vespa 9: This is allowed, but shouldn't be.
docprocs/src/test/java/com/yahoo/docprocs/indexing/IndexingProcessorTestCase.java