@Test
void index() {

    StatMessage message = message("1");
    message.info = Map.of("key", "value");
    var now = LocalDate.of(2017, Month.OCTOBER, 10);
    statService.index(List.of(message), now);
    StatDocument stat = statDocument(now, message.id);
    assertThat(stat.stats).isEqualTo(message.stats);
    assertThat(stat.info).isEqualTo(message.info);
}