### Question:
IssueManager { @Transactional(propagation = Propagation.REQUIRED) public List<Issue> deleteIssuesForEntity(EntityVO entity) { validateEntityParameters(entity); validateEntityCanBeModified(entity); List<Issue> issuesToDelete = issueDao.loadIssuesForEntity(entity); if (CollectionUtils.isNotEmpty(issuesToDelete)) { List<Long> issuesIds = issuesToDelete.stream().map(Issue::getId).collect(Collectors.toList()); List<Long> commentIds = commentDao.loadCommentsForIssues(issuesIds).values().stream() .flatMap(Collection::stream) .map(IssueComment::getId) .collect(Collectors.toList()); List<Attachment> attachments = attachmentDao.loadAttachmentsByCommentIds(commentIds).values().stream() .flatMap(Collection::stream) .collect(Collectors.toList()); attachments.addAll(attachmentDao.loadAttachmentsByIssueIds(issuesIds)); attachmentFileManager.deleteAttachments(attachments); commentDao.deleteAllCommentsForIssuesList(issuesIds); issueDao.deleteIssuesForEntity(entity); } return issuesToDelete; }  @Transactional(propagation = Propagation.REQUIRED) Issue createIssue(IssueVO issueVO); Issue loadIssue(Long id); PagedResult<List<Issue>> loadMy(Long page, Integer pageSize); List<Issue> loadIssuesForEntity(EntityVO entityVO); @Transactional(propagation = Propagation.REQUIRED) Issue updateIssue(Long issueId, IssueVO issueVO); @Transactional(propagation = Propagation.REQUIRED) Issue deleteIssue(Long issueId); @Transactional(propagation = Propagation.REQUIRED) List<Issue> deleteIssuesForEntity(EntityVO entity); @Transactional(propagation = Propagation.REQUIRED) IssueComment createComment(Long issueId, IssueCommentVO commentVO); IssueComment loadComment(Long issueId, Long commentId); @Transactional(propagation = Propagation.REQUIRED) IssueComment updateComment(Long issueId, Long commentId, IssueCommentVO commentVO); @Transactional(propagation = Propagation.REQUIRED) IssueComment deleteComment(Long issueId, Long commentId);  }### Answer:
@Test public void testDeleteIssuesForNonExistingEntity() { List<Issue> issues = issueManager.deleteIssuesForEntity(new EntityVO(1L, AclClass.FOLDER)); assertTrue(CollectionUtils.isEmpty(issues)); }