Question: can mockito mock an interface?
Answer: The Mockito. mock() method allows us to create a mock object of a class or an interface. Then, we can use the mock to stub return values for its methods and verify if they were called. ... This method doesn't need anything else to be done before it can be used.