*/
final public void testModifySaveAndReload() throws DocumentBuildException, DocumentException {
Publication publication = PublicationHelper.getPublication();
DocumentIdentityMap map = new DocumentIdentityMap();
Document doc = map.get(publication, AREA, DOCUMENT_ID, LANGUAGE);
MetaData dcCore = doc.getMetaDataManager().getDublinCoreMetaData();
String title = dcCore.getFirstValue(DublinCore.ELEMENT_TITLE);
String subject = dcCore.getFirstValue(DublinCore.ELEMENT_SUBJECT);
String creator = dcCore.getFirstValue(DublinCore.ELEMENT_CREATOR);
String dateIssued = dcCore.getFirstValue(DublinCore.TERM_ISSUED);
dcCore.setValue(DublinCore.ELEMENT_CREATOR, CREATOR);
dcCore.save();
Document doc2 = map.get(publication, AREA, DOCUMENT_ID, LANGUAGE);
MetaData dcCore2 = doc2.getMetaDataManager().getDublinCoreMetaData();
assertEquals(title, dcCore2.getFirstValue(DublinCore.ELEMENT_TITLE));
assertEquals(subject, dcCore2.getFirstValue(DublinCore.ELEMENT_SUBJECT));
assertEquals(dateIssued, dcCore2.getFirstValue(DublinCore.TERM_ISSUED));
assertFalse(creator.equals(dcCore2.getFirstValue(DublinCore.ELEMENT_CREATOR)));
assertEquals(CREATOR, dcCore2.getFirstValue(DublinCore.ELEMENT_CREATOR));
}