@Test
public void testCommit() throws Exception {

    final ListenableFuture<Void> commit = cohort.commit();
    verify(history).onTransactionComplete(TRANSACTION_ID);
    Assert.assertNull(getWithTimeout(commit));
}