waitForJobExecutorToProcessAllJobs(5000l, 25l);
assertNull(managementService.createJobQuery().singleResult());
ProcessScopedMessageBean messageBean = (ProcessScopedMessageBean) runtimeService.getVariable(pid, "processScopedMessageBean");
assertEquals("test", messageBean.getMessage());
runtimeService.signal(pid);
}