APS java Delegate Junit Test

Showing results for 
Search instead for 
Did you mean: 

APS java Delegate Junit Test

I am using service task which is associated with Java Delegate.

I Have injected some service in my java delegate.

I want to create junit test for java delegate. How can I create?

I have taken reference of https://hub.alfresco.com/t5/alfresco-process-services/alfresco-process-services-unit-testing-ii/ba-p... and it is working but here it is normal way where static response is there.