@Test
public void testGetExpressionVariableAsIntegerRequired()
{

    // Mock dependencies.
    Expression expression = mock(Expression.class);
    DelegateExecution execution = mock(DelegateExecution.class);
    when(expression.getValue(execution)).thenReturn(INTEGER_VALUE.toString());
    // Call the method under test.
    Integer result = activitiHelper.getExpressionVariableAsInteger(expression, execution, VARIABLE_NAME, VARIABLE_REQUIRED);
    // Validate the result.
    assertEquals(INTEGER_VALUE, result);
}