// get session from provider!
DbSession dbSession = sessionProvider.getDbSession();
assertNotNull(dbSession);
// transaction started, but connection not yet fetched as it is not used yet
assertEquals(1, jtxManager.totalTransactions());
assertEquals(0, cp.getConnectionsCount().getBusyCount());
// same session as it is the same transaction
DbSession dbSession2 = sessionProvider.getDbSession();
assertNotNull(dbSession2);