I'm trying to mock a method when called only from a specific class, as the underlying framework calls my mock method N times.

Is there a way to delineate the invoker of a particular mocked method so I can conditionally return data based on the caller?

I'm using Mockito and the doAnswer API