HttpGet httpget = new HttpGet("/random/20000");
HttpHost target = getServerHttp();
HttpResponse response = client.execute(target, httpget);
ClientConnectionRequest connreq = mgr.requestConnection(new HttpRoute(target), null);
try {
connreq.getConnection(250, TimeUnit.MILLISECONDS);
fail("ConnectionPoolTimeoutException should have been thrown");
} catch (ConnectionPoolTimeoutException expected) {
}