@Test 
public void testHttpHandlerOnFailedConnection() {

    authenticate(true);
    
    Response resp = new Response().status(403);
    ResponseBody body = TestListener.createHttpMessage(resp);
    
    listener.onMessage(body);
    
    assert !client.getSourceConnectionFuture().getNow(true); // It should be set to false now
    assert hHandler.compareStatus(403);
}