Code example for HttpHead

0
    } 
 
    public void testAsHead_head() 
        throws IOException 
    { 
        HttpRequest request = new HttpHead();
 
        Expect expect = new Expect().asHead();
 
        assertTrue("!matched",
            expect.matches(new CachedHttpRequestFacade(request)));
    } 
 
    public void testAsHead_get() 
        throws IOException 
    { 
        HttpRequest request = new HttpGet();
 
        Expect expect = new Expect().asHead();
 
        assertFalse("matched",