@Test
public void sendsCompensatedEventOnCompensationCompleted() {

  handler.onReceive(globalTxId, localTxId, parentTxId, methodName);
  assertThat(coordinatedEvents.size(), is(1));
  CoordinatedEvent event = coordinatedEvents.get(0);
  assertThat(event.getGlobalTxId(), is(globalTxId));
  assertThat(event.getLocalTxId(), is(localTxId));
  assertThat(event.getParentTxId(), is(parentTxId));
  assertThat(event.getMethodName(), is(methodName));
  assertThat(event.getStatus(), is(TransactionStatus.Succeed));
}