serializer.serialize(obj, out, "UTF-8", SERIALIZE_EXPORT_ARCHIVE);
}
@Test
public void testSerialize() throws Exception {
DigitalObject obj = createTestObject(Models.FEDORA_OBJECT_3_0);
obj.setLastModDate(new Date());
DatastreamXMLMetadata ds1 = createXDatastream("DS1");
ds1.DSCreateDT = new Date();
obj.addDatastreamVersion(ds1, true);
OutputStream out = new ByteArrayOutputStream();
DOSerializer serializer = new AtomDOSerializer();
serializer.serialize(obj, out, "UTF-8", SERIALIZE_EXPORT_ARCHIVE);