public void commit() throws SQLException {
        Collection<SQLException> exceptions = new LinkedList<>();
        if (databaseConnectionManager.getConnectionSession().getConnectionContext().getTransactionContext().isExceptionOccur()) {
            exceptions.addAll(rollbackConnections());
        } else {
            exceptions.addAll(commitConnections());
        }
        throwSQLExceptionIfNecessary(exceptions);
    }
@Test
    void assertCommit() throws SQLException {
        localTransactionManager.commit();
        verify(connectionContext.getTransactionContext()).isExceptionOccur();
        verify(connection).commit();
    }