synchronized(bound) {
if (!httpServer.started) {
bound.wait(5000);
}
}
HttpConnection connection = HttpConnectionManager.getDefault().getConnection(new URI("http://127.0.0.1:" + httpServer.port()), 1000);
HttpConnectionManager.getDefault().returnConnectionToPool(connection);
assertEquals(initialFreeConnections + 1, HttpConnectionManager.getDefault().numFreeConnections());
HttpURLConnection c = (HttpURLConnection)
new URL("http://127.0.0.1:" + httpServer.port()).openConnection();
c.setDoOutput(true);