I am trying to mock a method whose signature is :
public A doSomething(B b, String str){}
I tried to update str value by using doAnswer. However this method returns object A with values set conditionally. I am not able to find out a way to set specific str value to be passed to this method. Can anyone please let me know how this can be achieved? I cannot use powermock in my project.