### Question:
MessageService { public void say() { count++; if (count == 1) { System.out.printf("Method called %d time%n", count); } else { System.out.printf("Method called %d times%n", count); } }  void say();  }### Answer:
@Test void testSayMessage() { messageService.say(); messageService.say(); messageService.say(); Mockito.verify(messageService, Mockito.times(3)).say(); }