metadata.set( TikaCoreProperties.MODIFIER, "lastModifiedBy" );
}
private void checkOOXMLMetadata(XMPMeta xmp) throws XMPException {
// check simple property
XMPProperty prop = xmp.getProperty( XMPConst.NS_DC, "language" );
assertNotNull( prop );
assertEquals( "language", prop.getValue() );
// check lang alt
prop = xmp.getLocalizedText( XMPConst.NS_DC, "title", null, XMPConst.X_DEFAULT );
assertNotNull( prop );
assertEquals( "title", prop.getValue() );
// check array
prop = xmp.getArrayItem( XMPConst.NS_DC, "subject", 1 );
assertNotNull( prop );
assertEquals( "keyword1", prop.getValue() );
prop = xmp.getArrayItem( XMPConst.NS_DC, "subject", 2 );
assertNotNull( prop );
assertEquals( "keyword2", prop.getValue() );
// check OOXML specific simple property
prop = xmp.getProperty( OfficeOpenXMLCore.NAMESPACE_URI, "lastModifiedBy" );
assertNotNull( prop );
assertEquals( "lastModifiedBy", prop.getValue() );
}