assertEquals(jobDefinition.getId(), activatedJobDefinition.getId());
assertFalse(activatedJobDefinition.isSuspended());
// the job is activated too
assertEquals(0, jobQuery.suspended().count());
assertEquals(1, jobQuery.active().count());
Job job = jobQuery.active().singleResult();
assertEquals(jobDefinition.getId(), job.getJobDefinitionId());
assertFalse(job.isSuspended());