### Question:
MessageService { public String getMessage(String message, LocalDateTime dateTime) { return String.format("%s %s", message, dateTime); }  String getMessage(String message, LocalDateTime dateTime);  }### Answer:
@Test void testGetMessage() { messageService.getMessage("Hello!", LocalDateTime.of(2019, 8, 20, 20, 18)); Mockito.verify(messageService).getMessage(captor1.capture(), captor2.capture()); assertEquals("Hello!", captor1.getValue()); assertEquals(LocalDateTime.of(2019, 8, 20, 20, 18), captor2.getValue()); }