}
});
try {
final JobManager jobManager = this.getJobManager();
jobManager.addJob(TOPIC, "myid3", null);
cb.block();
assertEquals(1, jobManager.findJobs(JobManager.QueryType.ALL, "sling/test", -1, (Map<String, Object>[])null).size());
// job is currently sleeping, but force cancel always waits!
final Event e = jobManager.findJob("sling/test", Collections.singletonMap(JobUtil.PROPERTY_JOB_NAME, (Object)"myid3"));
assertNotNull(e);