Expecting calls is an extended feature for behavior verification; we can also check the number of times that the mocked method has been called. We can do so by using the times(n) method. At the same time, we can also validate whether it has been called using the never() method.