I started using Camunda Platform Scenario for testing my process. My process is embedded in a SpringBoot-App and contains ServiceTasks that are implemented in a Java class and referenced as Expression.
Example-Reference in the ServiceTask in the modeler:
Expression: ${mf.myMethod(execution)}
“mf” is a Spring Bean name. That Bean implements “myMethod”
public void myMethod(DelegateExecution execution) { ...}
Now to test different process paths, I have to mock either the whole “mf” Bean (and test it with normal UnitTests) or at least mock the dependencies of the “mf” Bean (count the Bean as part of the process and don’t test it individually).