### Question:
LeaveRequestService { public LeaveRequest request(String employee, LocalDate from, LocalDate to) { LeaveRequest leaveRequest = LeaveRequest.builder() .employee(employee) .fromDate(from) .toDate(to) .build(); return repo.save(leaveRequest); }  LeaveRequest request(String employee, LocalDate from, LocalDate to); Optional<LeaveRequest> approve(UUID id); Optional<LeaveRequest> deny(UUID id); Optional<LeaveRequest> retrieve(UUID id); List<LeaveRequest> retrieveFor(String employee); List<LeaveRequest> retrieveAll();  }### Answer:
@Test void testRequest() { LeaveRequest leaveRequest = service.request("Alice", of(2019, 11, 30), of(2019, 12, 03)); verify(repository).save(leaveRequest); }