@Test
    public void testUpdateSimple() {
        // We cannot test much on this level anyway, most stuff in ValueUpdate is package
        // private. Better tests exist in FieldUpdateTestCase.
        AssignValueUpdate upd = (AssignValueUpdate) ValueUpdate.createAssign(new StringFieldValue("newvalue"));

        assertEquals(ValueUpdate.ValueUpdateClassID.ASSIGN, upd.getValueUpdateClassID());

        FieldValue newValue = upd.getValue();
        assertEquals(new StringFieldValue("newvalue"), newValue);
    }
Test case for ValueUpdate class.

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