when(mockVariable.getExecutionId()).thenReturn(executionId); when(mockVariable.getErrorMessage()).thenReturn(errorMessage); when(mockVariable.getActivtyInstanceId()).thenReturn(activityInstanceId); when(mockVariable.getActivityInstanceId()).thenReturn(activityInstanceId); when(mockVariable.getCaseDefinitionKey()).thenReturn(caseDefinitionKey);