@Test
void cookies() {

    var controller = new EventController(List.of(), List.of("visitor_id"));
    when(request.cookie(new CookieSpec("visitor_id"))).thenReturn(Optional.empty());
    List<Cookie> cookies = controller.cookies(request);
    assertThat(cookies).hasSize(0);
    when(request.cookie(new CookieSpec("visitor_id"))).thenReturn(Optional.of("value"));
    cookies = controller.cookies(request);
    assertThat(cookies).hasSize(1);
    Cookie cookie = cookies.get(0);
    assertThat(cookie.name).isEqualTo("visitor_id");
    assertThat(cookie.value).isEqualTo("value");
}