try{IO.toString(url.openStream()); assertTrue(false); } catch(FileNotFoundException e) { assertTrue(true); }
try { String s=IO.toString(url.openStream()); System.err.println("s="+s); assertTrue(false); } catch(FileNotFoundException e) { assertTrue(true); }
    public void testDoGet() throws Exception    {        URL url = null;                url=new URL("http://127.0.0.1:"+connector.getLocalPort()+"/context/servlet/info?query=foo");        assertEquals("<h1>Hello SimpleServlet</h1>",IO.toString(url.openStream()));                        url=new URL("http://127.0.0.1:"+connector.getLocalPort()+"/");        try{IO.toString(url.openStream()); assertTrue(false); } catch(FileNotFoundException e) { assertTrue(true); }                 url=new URL("http://127.0.0.1:"+connector.getLocalPort()+"/context");        try{IO.toString(url.openStream()); assertTrue(false); } catch(FileNotFoundException e) { assertTrue(true); }                 url=new URL("http://127.0.0.1:"+connector.getLocalPort()+"/context/xxxxx");        try{IO.toString(url.openStream()); assertTrue(false); } catch(FileNotFoundException e) { assertTrue(true); }     }