@Test
void linkFolderIsMissing() {

    Bundle fullBundle = new Bundle();
    fullBundle.addEntity(mySTask);
    fullBundle.addEntity(createPolicy("myScheduledPolicy", "1", "1", "1", null, ""));
    fullBundle.addEntity(createFolder("myFolder", "2", null));
    FolderTree folderTree = new FolderTree(fullBundle.getEntities(Folder.class).values());
    fullBundle.setFolderTree(folderTree);
    assertThrows(LinkerException.class, () -> scheduledTaskLinker.link(bundle, fullBundle));
}