I was learning mockito and I understood the basic usages of the above mentioned functions from the link.
But I would like to know whether it can be used for any othe
It depends on the kind of test double you want to interact with:
In other words, with mocking the only useful interactions with a collaborator are the ones that you provide. By default functions will return null, void methods do nothing.