.setVariableLocal("anotherVariableName", 999)
.setVariableLocal("aSerializedObject", Variables.objectValue(Arrays.asList("1", "2")).create())
.execute();
// when
StringValue stringValue = caseService.getVariableLocalTyped(caseExecutionId, "aVariableName");
ObjectValue objectValue = caseService.getVariableLocalTyped(caseExecutionId, "aSerializedObject");
ObjectValue serializedObjectValue = caseService.getVariableLocalTyped(caseExecutionId, "aSerializedObject", false);
// then
assertNotNull(stringValue.getValue());
assertNotNull(objectValue.getValue());
assertTrue(objectValue.isDeserialized());
assertEquals(Arrays.asList("1", "2"), objectValue.getValue());
assertFalse(serializedObjectValue.isDeserialized());
assertNotNull(serializedObjectValue.getValueSerialized());