@Test(expected = TestException.class)
public void testCanCommitWithExceptionFailure() throws Exception {

    ThreePhaseCommitCohortProxy proxy = new ThreePhaseCommitCohortProxy(actorUtils, Arrays.asList(
            newCohortInfo(new CohortActor.Builder(tx).expectCanCommit(new TestException()))), tx);
    propagateExecutionExceptionCause(proxy.canCommit());
}