@Test
public void commit() {

    XOTransaction xoTransaction = new XOTransactionImpl(datastoreTransaction);
    xoTransaction.begin();
    assertThat(xoTransaction.isActive(), equalTo(true));
    xoTransaction.commit();
    assertThat(xoTransaction.isActive(), equalTo(false));
    verify(datastoreTransaction).begin();
    verify(datastoreTransaction).commit();
    verify(datastoreTransaction, never()).rollback();
}