### Question:
IssueManager { @Transactional(propagation = Propagation.REQUIRED) public IssueComment updateComment(Long issueId, Long commentId, IssueCommentVO commentVO) { IssueComment issueComment = loadComment(issueId, commentId); loadIssueAndCheckIfNotClosed(issueId); String text = commentVO.getText(); ensureNotEmptyString(text, MessageConstants.ERROR_INVALID_COMMENT_TEXT); issueComment.setText(text); commentDao.updateComment(issueComment); HashSet<Attachment> newAttachments = new HashSet<>(commentVO.getAttachments()); List<Attachment> allAttachments = attachmentDao.loadAttachmentsByCommentId(commentId); List<Attachment> toDelete = allAttachments.stream().filter(a -> !newAttachments.contains(a)) .collect(Collectors.toList()); attachmentFileManager.deleteAttachments(toDelete); commentVO.getAttachments().forEach(a -> attachmentDao.updateAttachmentCommentId(a.getId(), commentId)); return issueComment; }  @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 testUpdateComment() { Issue issue = registerIssue(); Long issueId = issue.getId(); IssueCommentVO commentVO = getCommentVO(COMMENT_TEXT); IssueComment comment = issueManager.createComment(issueId, commentVO); IssueCommentVO updated = new IssueCommentVO(); updated.setText(COMMENT_TEXT2); Long commentId = comment.getId(); issueManager.updateComment(issueId, comment.getId(), updated); assertEquals(COMMENT_TEXT2, issueManager.loadComment(issueId, commentId).getText()); }