taskVariables.put("item", "cookies");
taskVariables.put("quantity", "lots of them");
taskVariables.put("address", "sesamestreet 46");
taskInstance.addVariables(taskVariables);
taskInstance.end();
assertEquals("cookies", contextInstance.getVariable("item"));
assertEquals("lots of them", contextInstance.getVariable("quantity"));
assertEquals("sesamestreet 46", contextInstance.getVariable("address"));
assertEquals("cookie monster", taskMgmtInstance.getSwimlaneInstance("buyer").getActorId());