@Test
public void shouldAddNewEventWithTTL() throws Exception {

  fixture.addEvent(event, nameBuilder, "bar_type", 10);
  verify(indexRequestBuilder).setTTL(10);
  verify(indexRequestBuilder).setSource(
      serializer.getContentBuilder(event).bytes());
}