MappingAwareActivityBehaviorFactory extends DefaultActivityBehaviorFactory { @Override protected CallActivityBehavior createCallActivityBehavior(Expression expression, List<MapExceptionEntry> mapExceptions) { return new MappingAwareCallActivityBehavior(expression, mapExceptions, variablesCalculator, processVariablesInitiator); } MappingAwareActivityBehaviorFactory(
        VariablesCalculator variablesCalculator,
                                               ProcessVariablesInitiator processVariablesInitiator); @Override UserTaskActivityBehavior createUserTaskActivityBehavior(UserTask userTask);  }
@Test public void createCallActivityBehaviorShouldReturnMappingAwareCallActivityBehavior() { assertThat(factory.createCallActivityBehavior("element", emptyList())) .isInstanceOf(MappingAwareCallActivityBehavior.class); }
@Test public void createCallActivityBehaviorWithExpressionShouldReturnMappingAwareCallActivityBehavior() { assertThat(factory.createCallActivityBehavior(mock(Expression.class), emptyList())) .isInstanceOf(MappingAwareCallActivityBehavior.class); }