@Test
void bulkIndex() {

    List<StatMessage> messages = Lists.newArrayList();
    for (int i = 0; i < 6; i++) {
        messages.add(message("bulk-" + i));
    }
    var now = LocalDate.of(2017, Month.OCTOBER, 10);
    statService.index(messages, now);
    StatDocument stat = statDocument(now, messages.get(0).id);
    assertThat(stat.stats).isEqualTo(messages.get(0).stats);
}