Code example for HttpExchange

Methods: close

0
        control = null;
    } 
     
    @Test
    public void testHttpHandlerImpl() throws Exception {
        exchange.close();
        destination.doService(EasyMock.isA(HttpServletRequest.class),
                              EasyMock.isA(HttpServletResponse.class)); 
        control.replay();
         
        handler.handle(exchange);
        control.verify();
    } 
     
}