@Test
public void sendsSagaEndedEvent() {

  sagaStartAnnotationProcessor.postIntercept(null);
  TxEvent event = messages.get(0);
  assertThat(event.globalTxId(), is(globalTxId));
  assertThat(event.localTxId(), is(globalTxId));
  assertThat(event.parentTxId(), is(nullValue()));
  assertThat(event.compensationMethod().isEmpty(), is(true));
  assertThat(event.type(), is(EventType.SagaEndedEvent));
  assertThat(event.payloads().length, is(0));
}