@Test
public void writeEntryToStream() throws Exception {

    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    FolderEntry folderEntry = new FolderEntry();
    folderEntry.setContentType(FolderContentType.PREPARATION);
    folderEntry.setContentId("contentId");
    folderEntry.setFolderId("folderId");
    FileSystemUtils.writeEntryToStream(folderEntry, outputStream);
    outputStream.close();
    Properties properties = new Properties();
    properties.load(new ByteArrayInputStream(outputStream.toByteArray()));
    assertEquals("contentId", properties.getProperty("contentId"));
    assertEquals("folderId", properties.getProperty("folderId"));
    assertEquals(FolderContentType.PREPARATION, FolderContentType.fromName(properties.getProperty("contentType")));
}