@Test
    public void testThatAssignValueUpdateForTensorFieldCanBeApplied() {
        Document doc = createDocument();
        assertNull(doc.getFieldValue(tensorField));

        DocumentUpdate update = createTensorAssignUpdate();
        update.applyTo(doc);

        TensorFieldValue tensor = (TensorFieldValue) doc.getFieldValue(tensorField);
        assertEquals(createTensorFieldValue("{{x:0}:2.0}"), tensor);
    }
Tests applying and serializing document updates.

@author Einar M R Rosenvinge
document/src/test/java/com/yahoo/document/DocumentUpdateTestCase.java