Map<String, Object> varMap = new HashMap<String, Object>();
varMap.put("test", "hello");
varMap.put("test2", "world");
String definitionKey = convertAndDeploy(workflowDefinition);
ProcessInstance instance = activitiRule.getRuntimeService().startProcessInstanceByKey(definitionKey, varMap);
assertEquals(1, taskService.createTaskQuery().taskAssignee("kermit").count());
assertEquals(0, taskService.createTaskQuery().taskAssignee("gonzo").count());
Task task = taskService.createTaskQuery().singleResult();
assertEquals("first task", task.getName());
taskService.complete(task.getId());