### Question:
IssueApiService { public PagedResult<List<Issue>> loadMy(long page, Integer pageSize) { return issueManager.loadMy(page, pageSize); }  @PreAuthorize(AclExpressions.ISSUE_CREATE) Issue createIssue(IssueVO issueVO); @PostAuthorize(AclExpressions.ISSUE_READ) Issue loadIssue(Long issueId); PagedResult<List<Issue>> loadMy(long page, Integer pageSize); @PreAuthorize(AclExpressions.ENTITY_READ) List<Issue> loadIssuesForEntity(EntityVO entityVO); @PreAuthorize(AclExpressions.ISSUE_AUTHOR) Issue updateIssue(Long issueId, IssueVO issueVO); @PreAuthorize(AclExpressions.ISSUE_AUTHOR) Issue deleteIssue(Long issueId); @PreAuthorize(AclExpressions.ISSUE_READ) IssueComment createComment(Long issueId, IssueCommentVO commentVO); @PreAuthorize(AclExpressions.ISSUE_READ) IssueComment loadComment(Long issueId, Long commentId); @PreAuthorize(AclExpressions.COMMENT_AUTHOR) IssueComment updateComment(Long issueId, Long commentId, IssueCommentVO commentVO); @PreAuthorize(AclExpressions.COMMENT_AUTHOR) IssueComment deleteComment(Long issueId, Long commentId);  }### Answer:
@Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) @WithMockUser(username = USER_OWNER) @Test public void testLoadMy() { PagedResult<List<Issue>> result = issueApiService.loadMy(1, 10); Assert.assertFalse(result.getElements().isEmpty()); Assert.assertTrue(result.getElements().stream().anyMatch(i -> CollectionUtils.isNotEmpty(i.getComments()))); Assert.assertEquals(result.getElements().size(), result.getTotalCount()); }