public void synchronize_a_lot_of_issues() throws Exception {
Integer numberOfIssues = 1000;
List<String> issueKeys = newArrayList();
for (int i = 0; i < numberOfIssues; i++) {
IssueDto issue = IssueTesting.newDto(rule, file, project);
tester.get(IssueDao.class).insert(session, issue);
issueKeys.add(issue.getKey());
}
session.commit();
// 0 Assert that all issues are both in ES and DB
assertThat(db.issueDao().findAfterDate(session, new Date(0))).hasSize(numberOfIssues);