assertEquals(jobDefinition.getId(), suspendedJobDefinition.getId());
assertTrue(suspendedJobDefinition.isSuspended());
// the job is still active
assertEquals(0, jobQuery.active().count());
assertEquals(1, jobQuery.suspended().count());
Job job = jobQuery.suspended().singleResult();
assertEquals(jobDefinition.getId(), job.getJobDefinitionId());
assertTrue(job.isSuspended());