@Test
    public void testApplyAssignSingle() {
        Document doc = createDocument();
        assertNull(doc.getFieldValue("strfoo"));
        docUp.addFieldUpdate(assignSingle);
        docUp.applyTo(doc);
        assertEquals(new StringFieldValue("something"), doc.getFieldValue("strfoo"));
    }
Tests applying and serializing document updates.

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