ActivitiHelper { public String getProcessIdentifyingInformation(DelegateExecution execution) { return MessageFormatter.format("[ activitiProcessDefinitionId=\"{}\" activitiProcessInstanceId=\"{}\" ]", execution.getProcessDefinitionId(), execution.getProcessInstanceId()).getMessage(); }  String getProcessIdentifyingInformation(DelegateExecution execution); Object getExpressionVariable(Expression expression, DelegateExecution execution); String getExpressionVariableAsString(Expression expression, DelegateExecution execution); String getRequiredExpressionVariableAsString(Expression expression, DelegateExecution execution, String variableName); Integer getExpressionVariableAsInteger(Expression expression, DelegateExecution execution, String variableName, boolean isRequired); Boolean getExpressionVariableAsBoolean(Expression expression, DelegateExecution execution, String variableName, boolean isRequired,
        Boolean defaultValue); BpmnModel constructBpmnModelFromXmlAndValidate(String xmlString);  }
@Test public void testGetProcessIdentifyingInformation() { final String processDefinitionId = STRING_VALUE; final String processInstanceId = STRING_VALUE_2; DelegateExecution execution = mock(DelegateExecution.class); when(execution.getProcessDefinitionId()).thenReturn(processDefinitionId); when(execution.getProcessInstanceId()).thenReturn(processInstanceId); String result = activitiHelper.getProcessIdentifyingInformation(execution); assertEquals(String.format("[ activitiProcessDefinitionId=\"%s\" activitiProcessInstanceId=\"%s\" ]", processDefinitionId, processInstanceId), result); }