@Test
public void transformInterceptedException() {

  SagaMessageSender sender = mock(SagaMessageSender.class);
  SagaStartAnnotationProcessor sagaStartAnnotationProcessor = new SagaStartAnnotationProcessor(
      context, sender);
  doThrow(exception).when(sender).send(any(TxEvent.class));
  try {
    sagaStartAnnotationProcessor.preIntercept(0);
    expectFailing(TransactionalException.class);
  } catch (TransactionalException e) {
    assertThat(e.getMessage(), is("exception"));
    assertThat(e.getCause(), instanceOf(RuntimeException.class));
    assertThat(e.getCause().getMessage(), is("runtime exception"));
  }
}