@Deployment
public void testTimerOnConcurrentSubprocess() {
String procId = runtimeService.startProcessInstanceByKey("testTimerOnConcurrentSubprocess").getId();
assertEquals(4, taskService.createTaskQuery().count());
Job timer = managementService.createJobQuery().singleResult();
managementService.executeJob(timer.getId());
assertEquals(5, taskService.createTaskQuery().count());
// Complete 4 tasks that will trigger the join
Task task = taskService.createTaskQuery().taskDefinitionKey("sub1task1").singleResult();
taskService.complete(task.getId());