### Question:
JCoTransaction extends AbstractTransaction { public void commit() { errorIfNotInTransaction(); notifySynchronizationsBeforeCompletion(); try { executeBapi(new BapiTransactionCommit(), bapiCommit); notifySynchronizationsAfterCompletion(true); } catch (RuntimeException e) { notifySynchronizationsAfterCompletion(false); throw e; } } JCoTransaction(final SessionImplementor session); void begin(); void commit(); void rollback();  }### Answer:
@Test public void testCommit() { transaction.begin(); transaction.commit(); verify(sessionMock, times(1)).execute(isA(BapiTransactionCommit.class), eq(bapiCommitMapping)); }