### Question:
GithubCommentManager { public void addComment(String comment) throws IOException { issueService.createComment(repoId, issueNumber, comment); } GithubCommentManager(IssueService issueService, RepositoryId repo, int issueNumber); int deleteComment(Predicate<Comment> commentPredicate); void addComment(String comment);  }### Answer:
@Test public void insertComment() throws IOException { when(mockIssue.createComment(repositoryId, prNum, "test2")).thenReturn(new Comment().setBody("test2")); GithubCommentManager manager = new GithubCommentManager(mockIssue, repositoryId, prNum); manager.addComment("test2"); verify(mockIssue).createComment(repositoryId, prNum, "test2"); }