List<String> names = new ArrayList<String>();
names.add("aVariableName");
names.add("anotherVariableName");
// when
VariableMap variables = caseService.getVariablesLocalTyped(caseExecutionId, names, true);
// then
assertNotNull(variables);
assertFalse(variables.isEmpty());
assertEquals(2, variables.size());
assertEquals("abc", variables.get("aVariableName"));
assertEquals(999, variables.get("anotherVariableName"));
assertEquals(variables, caseService.getVariablesLocal(caseExecutionId, names));
}