processInstance = queryProcessInstance();
assertNotNull(processInstance);
assertEquals(caseInstanceId, processInstance.getCaseInstanceId());
CaseExecution processTask = queryCaseExecutionByActivityId(PROCESS_TASK_KEY);
assertTrue(processTask.isActive());
// the case instance has two variables:
// - aVariableName
// - anotherVariableName
List<VariableInstance> result = runtimeService