@Test
public void testTransactionCommitStrategyExecutionForActiveTransaction() throws Throwable {

    // GIVEN
    when(tx.isActive()).thenReturn(Boolean.TRUE);
    final TransactionStrategyExecutor executor = provider.commitStrategy();
    // WHEN
    executor.begin();
    executor.commit();
    // THEN
    verify(tx).begin();
    verify(tx).isActive();
    verify(tx).getRollbackOnly();
    verify(tx).commit();
    verifyNoMoreInteractions(tx);
}