props.put("list", list);
props.put("map", map);
final String jobId = jobManager.addJob(TOPIC, props).getId();
new RetryLoop(Conditions.collectionIsNotEmptyCondition(finishedEvents,
"Waiting for finishedEvents to have at least one element"), 5, 50);
// no jobs queued, none processed and no available
new RetryLoop(new RetryLoop.Condition() {
@Override
public String getDescription() {
return "Waiting for job to be processed. Conditions: queuedJobs=" + jobManager.getStatistics().getNumberOfQueuedJobs() +
", jobsCount=" + processedJobsCount + ", findJobs=" +