assertEquals(0, activitiRule.getRuntimeService().createProcessInstanceQuery().processInstanceId(instance.getId()).count());
varMap = new HashMap<String, Object>();
varMap.put("test", "world");
instance = activitiRule.getRuntimeService().startProcessInstanceByKey(definitionKey, varMap);
assertEquals(0, taskService.createTaskQuery().taskAssignee("kermit").count());
assertEquals(1, taskService.createTaskQuery().taskAssignee("gonzo").count());
task = taskService.createTaskQuery().singleResult();
assertEquals("gonzo task", task.getName());
taskService.complete(task.getId());