JobDefinitionQuery query = managementService.createJobDefinitionQuery();
List<JobDefinition> jobDefinitions = query.list();
assertEquals(3, jobDefinitions.size());
assertEquals(1, query.processDefinitionKey("testProcess").list().size());
assertEquals(2, query.processDefinitionKey("anotherTestProcess").list().size());
}
protected Set<String> getJobDefinitionIds(List<JobDefinition> jobDefinitions) {
Set<String> definitionIds = new HashSet<String>();
for (JobDefinition definition : jobDefinitions) {