@Test
    public void testThatAssignValueUpdateForTensorFieldCanBeSerializedAndDeserialized() {
        DocumentUpdate serializedUpdate = createTensorAssignUpdate();
        DocumentSerializer serializer = DocumentSerializerFactory.createHead(new GrowableByteBuffer());
        serializedUpdate.serialize(serializer);
        serializer.getBuf().flip();

        DocumentDeserializer deserializer = DocumentDeserializerFactory.createHead(docMan, serializer.getBuf());
        DocumentUpdate deserializedUpdate = new DocumentUpdate(deserializer);
        assertEquals(serializedUpdate, deserializedUpdate);
    }
Tests applying and serializing document updates.

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