DefaultCompensatingTransactionOperationManager implements
        CompensatingTransactionOperationManager { public void commit() { log.debug("Performing commit"); for (CompensatingTransactionOperationExecutor operationExecutor : operationExecutors) { try { operationExecutor.commit(); } catch (Exception e) { throw new TransactionSystemException( "Error occurred during commit", e); } } } DefaultCompensatingTransactionOperationManager(
            CompensatingTransactionOperationFactory operationFactory); void performOperation(Object resource, String operation,
            Object[] args); void rollback(); void commit();  }
@Test public void testCommit() { DefaultCompensatingTransactionOperationManager tested = new DefaultCompensatingTransactionOperationManager( operationFactoryMock); tested.getOperationExecutors().push(operationExecutorMock); tested.commit(); verify(operationExecutorMock).commit(); }