@Test
void sendEventRequest() {

    var event = new Event();
    event.date = ZonedDateTime.now().withZoneSameInstant(ZoneId.of("UTC"));
    event.result = Result.OK;
    event.action = "action";
    event.elapsedTime = 10L;
    var sendEventRequest = new SendEventRequest();
    sendEventRequest.events.add(event);
    when(request.body()).thenReturn(Optional.of(Strings.bytes(JSON.toJSON(sendEventRequest))));
    var controller = new EventController(List.of(), null);
    SendEventRequest parsedSendEventRequest = controller.sendEventRequest(request);
    assertThat(parsedSendEventRequest).usingRecursiveComparison().isEqualTo(sendEventRequest);
}