verify(issueStorage).save(eq(issue));
}
@Test
public void should_execute_bulk_change_with_comment_only_on_changed_issues() {
IssueDto issueDto1 = IssueTesting.newDto(RuleTesting.newDto(rule.ruleKey()).setId(50), file, project).setKee("ABCD");
IssueDto issueDto2 = IssueTesting.newDto(RuleTesting.newDto(rule.ruleKey()).setId(50), file, project).setKee("EFGH");
org.sonar.server.search.Result<Issue> resultIssues = mock(org.sonar.server.search.Result.class);
when(resultIssues.getHits()).thenReturn(Lists.<Issue>newArrayList(issueDto1.toDefaultIssue(), issueDto2.toDefaultIssue()));
when(issueService.search(any(IssueQuery.class), any(QueryContext.class))).thenReturn(resultIssues);
when(issueDao.getByKeys(dbSession, newArrayList("ABCD", "EFGH"))).thenReturn(newArrayList(issueDto1, issueDto2));
Map<String, Object> properties = newHashMap();
properties.put("issues", "ABCD,EFGH");