MULE-7907: Raise an exception if rollback or commit operations were OK, but close operation failed.

(cherry picked from commit fa65f1a1ff688ee522b3483cecf846605d8eef86)

The file transports/jdbc/src/test/java/org/mule/transport/jdbc/JdbcTransactionTestCase.java was changed in order to use jUnit 4.9.
MULE-7907: Ensure to call close method when on commit and rollback in DB module.

(cherry picked from commit 49474ca10125e2a273d0b44f1086bc650c8f4c4f)

The file modules/db/src/test/java/org/mule/module/db/internal/domain/connection/TransactionalDbConnectionFactoryTestCase.java was changed in order to use jUnit 4.9.