rim.setTimestamp(20);
emptyRRM.getContent().add(rim);
File temp = new File(System.getProperty("java.io.tmpdir"));
JAXBRepositoryContentMetadataPersister testee = new JAXBRepositoryContentMetadataPersister(temp.toURI());
testee.store("test", rcm);
// Ensure we clean up
File stored = testee.getMetadataPath("test");
stored.deleteOnExit();
toDelete.add(stored);
InputStreamReader isr = new InputStreamReader(new FileInputStream(stored));
StringWriter writer = new StringWriter();
int read;
while ((read = isr.read()) != -1)
writer.write(read);
writer.close();
System.out.println(writer.toString());
RepositoryContentMetadata deserialized = testee.load("test");
assertEquals(rcm, deserialized);
}