@Test
    public void testAssignMapNoexistNocreate() {
        Document doc = new Document(docMan.getDocumentType("foobar"), new DocumentId("id:ns:foobar::foooo"));
        MapFieldValue mfv = new MapFieldValue((MapDataType)doc.getField("structmap").getDataType());

        Struct fv1 = new Struct(mfv.getDataType().getValueType());
        fv1.setFieldValue("title", new StringFieldValue("thomas"));
        fv1.setFieldValue("rating", new IntegerFieldValue(32));

        DocumentUpdate docUp = new DocumentUpdate(docType, new DocumentId("id:ns:foobar::bar"));
        AssignFieldPathUpdate ass = new AssignFieldPathUpdate(doc.getDataType(), "structmap{foo}", "", fv1);
        ass.setCreateMissingPath(false);
        docUp.addFieldPathUpdate(ass);
        docUp.applyTo(doc);

        MapFieldValue valueNow = (MapFieldValue)doc.getFieldValue("structmap");
        assertNull(valueNow);
    }
Tests applying and serializing document updates.

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