In JUnit, make sure connection pool size is equal to concurrency level to avoid timeout from connection pool.