@Test
public void testMaxQueueSize1() {

  ConnectionQueue queue = new ConnectionQueue();
  ConnectionPool pool = new ConnectionPool(queue, 1, 0);
  SimpleHolder holder1 = new SimpleHolder();
  pool.acquire(holder1);
  SimpleConnection conn = new SimpleConnection();
  queue.connect(conn);
  holder1.init();
  SimpleHolder holder2 = new SimpleHolder();
  pool.acquire(holder2);
  assertTrue(holder2.isFailed());
}