@Deployment
@SuppressWarnings("unchecked")
public void testOutputNested() {
ProcessInstance pi = runtimeService.startProcessInstanceByKey("testProcess");
VariableInstance var1 = runtimeService.createVariableInstanceQuery().variableName("var1").singleResult();
TreeMap<String, Object> value = (TreeMap) var1.getValue();
List<Object> nestedList = (List<Object>) value.get("a");
assertEquals("stringInListNestedInMap", nestedList.get(0));
assertEquals("b", nestedList.get(1));
assertEquals(pi.getId(), var1.getExecutionId());
VariableInstance var2 = runtimeService.createVariableInstanceQuery().variableName("var2").singleResult();
assertNotNull(var2);
assertEquals("stringConstantValue", var2.getValue());
assertEquals(pi.getId(), var2.getExecutionId());
}