### Question:
TccStartAnnotationProcessor { public void postIntercept(String parentTxId, String methodName) { tccMessageSender.tccTransactionStop(new TccEndedEvent(omegaContext.globalTxId(), omegaContext.localTxId(), TransactionStatus.Succeed)); } TccStartAnnotationProcessor(OmegaContext omegaContext, TccMessageSender tccMessageSender); AlphaResponse preIntercept(String parentTxId, String methodName, int timeout); void postIntercept(String parentTxId, String methodName); void onError(String parentTxId, String methodName, Throwable throwable);  }### Answer:
@Test public void testSendTccEndEventWithoutError() { tccStartAnnotationProcessor.postIntercept(null, "TccStartMethod"); TccEndedEvent event = endedEvents.get(0); assertThat(event.getGlobalTxId(), is(globalTxId)); assertThat(event.getLocalTxId(), is(globalTxId)); assertThat(event.getStatus(), is(TransactionStatus.Succeed)); }