@Override
  public void execute(Context context) {
    try (CloseableIterator<DefaultIssue> issues = protoIssueCache.traverse()) {
      while (issues.hasNext()) {
        DefaultIssue issue = issues.next();
        if (shouldUpdateIndexForIssue(issue)) {
          changedIssuesRepository.addIssueKey(issue.key());
        }
      }
    }
  }
@Test
  public void execute_whenIssueIsNew_shouldLoadIssue() {
    protoIssueCache.newAppender()
      .append(newDefaultIssue().setNew(true))
      .close();

    underTest.execute(mock(ComputationStep.Context.class));

    verify(changedIssuesRepository).addIssueKey("issueKey1");
  }