@Test
public void toFolderEntry() throws Exception {

    Path testEntry = testFolder.resolve("testEntry");
    String contentId = "contentId";
    String folderId = "folderId";
    FolderContentType contentType = FolderContentType.PREPARATION;
    createEntry(testEntry, contentId, folderId, contentType);
    FolderEntry folderEntry = FileSystemUtils.toFolderEntry(testEntry);
    assertNotNull(folderEntry);
    assertEquals(contentId, folderEntry.getContentId());
    assertEquals(folderId, folderEntry.getFolderId());
    assertEquals(contentType, folderEntry.getContentType());
}