@Test
void link() {

    Bundle fullBundle = new Bundle();
    fullBundle.addEntity(mySTask);
    fullBundle.addEntity(createPolicy("myScheduledPolicy", "1", "1", "1", null, ""));
    fullBundle.addEntity(createFolder("myFolder", "1", null));
    FolderTree folderTree = new FolderTree(fullBundle.getEntities(Folder.class).values());
    fullBundle.setFolderTree(folderTree);
    scheduledTaskLinker.link(bundle, fullBundle);
    assertEquals("myScheduledPolicy", bundle.getEntities(ScheduledTask.class).get("1").getPolicy());
}