I want to get a number of invocations per a given method from a Mockito mock.
Lets say I declared a mock and two stubbing for it:
when(mock.methodA()).thenReturn(..);
when(mock.methodB()).thenReturn(..);
I can do something like Mockito.mockingDetails(mock).getInvocations() but it returns a collection of all invocations. I want to get a number of invocations for the methodA only.