CmisObjectType object1 = new CmisObjectType();
object1.setProperties(properties);
// write the entry
AtomEntryWriter aew = new AtomEntryWriter(object1, CONTENT_TYPE, new ByteArrayInputStream(CONTENT));
aew.write(bao);
byte[] entryContent = bao.toByteArray();
assertTrue(entryContent.length > 0);
String entryContentStr = new String(entryContent, "UTF-8");