is = url.openStream();
assertTrue("available() less than 0", is.available() >= 0);
is.close();
// create a server socket
Support_HttpServerSocket serversocket = new Support_HttpServerSocket();
// create a client connector
Support_URLConnector client = new Support_URLConnector();
// pass both to the HttpTest
Support_HttpTests test = new Support_HttpTests(serversocket, client);
// run various tests common to both HttpConnections and
// HttpURLConnections
test.runTests(this);
// Authentication test is separate from other tests because it is only
// in HttpURLConnection and not supported in HttpConnection
serversocket = new Support_HttpServerSocket();
Support_HttpServer server = new Support_HttpServer(serversocket, this);
int p = Support_PortManager.getNextPort();
server.startServer(p);
// it is the Support_HttpServer's responsibility to close this