@Test
void bulkIndex() {

    List<ActionLogMessage> messages = Lists.newArrayList();
    for (int i = 0; i < 6; i++) {
        ActionLogMessage message = message("bulk-" + i, "TRACE");
        message.traceLog = "trace";
        messages.add(message);
    }
    LocalDate now = LocalDate.of(2016, Month.JANUARY, 15);
    actionService.index(messages, now);
    ActionDocument action = actionDocument(now, messages.get(0).id);
    assertThat(action.result).isEqualTo("TRACE");
}