@Test
public void testCanCommitNoWithThreeCohorts() throws Exception {

    List<CohortInfo> cohorts = Arrays.asList(
            newCohortInfo(new CohortActor.Builder(tx).expectCanCommit(
                    CanCommitTransactionReply.yes(CURRENT_VERSION))),
            newCohortInfo(new CohortActor.Builder(tx).expectCanCommit(
                    CanCommitTransactionReply.no(CURRENT_VERSION))),
            newCohortInfo(new CohortActor.Builder(tx)));
    ThreePhaseCommitCohortProxy proxy = new ThreePhaseCommitCohortProxy(actorUtils, cohorts, tx);
    verifyCanCommit(proxy.canCommit(), false);
    verifyCohortActors();
}