$ mvn -o -B test -Dtest=HikariPoolExhaustionTest (trimmed to the test's own RESULT line and the surefire summary) RESULT[hikari-pool-exhaustion]: maximumPoolSize=1, connectionTimeout=1000ms | second getConnection() waited=1004ms before throwing java.sql.SQLTransientConnectionException: exhaustion-pool - Connection is not available, request timed out after 1000ms (total=1, active=1, idle=0, waiting=0) ------------------------------------------------------------------------------- Test set: com.ankurm.hibernatedemo.hikari.HikariPoolExhaustionTest ------------------------------------------------------------------------------- Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.351 s -- in com.ankurm.hibernatedemo.hikari.HikariPoolExhaustionTest