* Test that readXMP and writeXMP work together.
*
* @throws Exception
*/
public void testReadWriteXMP() throws Exception {
ParserResult result = BibtexParser
.parse(new StringReader(
"@article{canh05,"
+ " author = {Crowston, K. and Annabi, H. and Howison, J. and Masango, C.},"
+ "\n"
+ " title = {Effective work practices for floss development: A model and propositions},"
+ "\n"
+ " booktitle = {Hawaii International Conference On System Sciences (HICSS)},"
+ "\n"
+ " year = {2005},"
+ "\n"
+ " owner = {oezbek},"
+ "\n"
+ " timestamp = {2006.05.29},"
+ "\n"
+ " url = {http://james.howison.name/publications.html}"
+ "\n" + "}"));
Collection<BibtexEntry> c = result.getDatabase().getEntries();
assertEquals(1, c.size());
BibtexEntry e = c.iterator().next();
XMPUtil.writeXMP(pdfFile, e, null);