public void testBadSizeOfArrays() throws Exception {
// building temporary XMP metadata
DublinCoreSchema dc = metadata.createAndAddDublinCoreSchema();
AdobePDFSchema pdf = metadata.createAndAddAdobePDFSchema();
XMPBasicSchema xmp = metadata.createAndAddXMPBasicSchema();
// Writing info in XMP and Document Information dictionary
// TITLE
dico.setTitle("dicoTitle");
dc.addToTitleValue("x-default", "XMPTitle");
// AUTHOR
dico.setAuthor("dicoAuthor");
dc.addToCreatorValue("XMPAuthor");
dc.addToCreatorValue("2ndCreator");
// SUBJECT
dico.setSubject("dicoSubj");
dc.addToSubjectValue("XMPSubj");
dc.addToSubjectValue("2ndSubj");
// KEYWORDS
dico.setKeywords("DicoKeywords");
pdf.setKeywordsValue("XMPkeywords");
// CREATOR
dico.setCreator("DicoCreator");
xmp.setCreatorToolValue("XMPCreator");
// PRODUCER
dico.setProducer("DicoProducer");
pdf.setProducerValue("XMPProducer");
// CREATION DATE
dico.setCreationDate(Calendar.getInstance());
GregorianCalendar XMPCreate = new GregorianCalendar(2008, 11, 05);
xmp.setCreateDateValue(XMPCreate);
// MODIFY DATE
dico.setModificationDate(Calendar.getInstance());
GregorianCalendar XMPModify = new GregorianCalendar(2009, 10, 15);
xmp.setModifyDateValue(XMPModify);
// Launching synchronization test
try {
ve = sync.validateMetadataSynchronization(doc, metadata);
// Test unsychronized value