Check out example codes for "java mockito print called methods". It will help you in understanding the concepts better.

Code Example 1

import static org.mockito.Mockito.mockingDetails;

System.out.println(mockingDetails(mock).printInvocations());
/* or */
System.out.println(mockingDetails(mock).getInvocations());

Learn ReactJs, React Native from akashmittal.com