@Test
void index() {

    EventMessage message = message("1");
    message.info = Map.of("param", "value");
    var now = LocalDate.of(2019, Month.MARCH, 19);
    eventService.index(List.of(message), now);
    EventDocument event = eventDocument(now, message.id);
    assertThat(event.context).isEqualTo(message.context);
    assertThat(event.info).containsEntry("param", "value");
}