@Test
public void testSendTccEndEventWithError() {

  tccStartAnnotationProcessor.onError(null, "TccStartMethod", null);
  TccEndedEvent event = endedEvents.get(0);
  assertThat(event.getGlobalTxId(), is(globalTxId));
  assertThat(event.getLocalTxId(), is(globalTxId));
  assertThat(event.getStatus(), is(TransactionStatus.Failed));
}