@jangalinski - Thanks for the detailed explanation. Just looked at Camunda-bpm-mockito library and it has lot of helper classes which will be making work easier .Before i use it just wanted to check if it has any Camunda version dependency ? We are on Camudna springboot 7.13.
Also i was able to successfully mock the java delegate with the solution provided by you but now it throws a different error mentioned in this post Error - Cannot find serialize for value 'ObjectValue from jUnit . Since you provided the correct answer for this topic i will mark it as a “solution” . Thanks once again .