assertEquals("Expected a 404 response from "+url+" but got "+ errorcode, HttpURLConnection.HTTP_NOT_FOUND,errorcode);
    public void testCaseTCP19() throws Throwable {        Prim application = deployExpectingSuccess(FILES+"tcp19.sf", "tcp19");        assertNotNull(application);        int port = 0;        String hostname = application.sfResolve("serverHost", (String)null, true);        port = application.sfResolve("port", port, true);        URL url = new URL("http", hostname, port, ROOT_DOC);        URLConnection urlConnection = url.openConnection();        BufferedReader in=null;        try {            in = new BufferedReader(                new InputStreamReader(                urlConnection.getInputStream()));            String inputLine;            while ((inputLine = in.readLine())!=null) {                assertNotNull(inputLine);            }        } finally {            FileSystem.close(in);        }    }