@Test
public void testMaxQueueSize2() {

  SimpleHolder holder2 = new SimpleHolder();
  SimpleConnection conn = new SimpleConnection();
  ConnectionPool[] poolRef = new ConnectionPool[1];
  ConnectionPool pool = new ConnectionPool(new ConnectionFactory() {
    @Override
    public Future<Connection> connect() {
      Promise<Connection> promise = Promise.promise();
      poolRef[0].acquire(holder2);
      assertFalse(holder2.isComplete());
      promise.complete(conn);
      assertFalse(holder2.isComplete());
      return promise.future();
    }
  }, 1, 0);
  poolRef[0] = pool;
  SimpleHolder holder1 = new SimpleHolder();
  pool.acquire(holder1);
  assertTrue(holder1.isComplete());
  assertTrue(holder2.isFailed());
}