You are misreading it-- the show method is not being called (it is not show()), but it is saying that when the show method is called, the notificationSpy is what should be returned.