protected void validateIsNotWebsocketUpgradeHttpResponse(IHttpResponse response){
  String upgradeHeader=response.getHeaderFirst(HttpHeaders.UPGRADE);
  assertNull(upgradeHeader);
  String websocketAcceptHeader=response.getHeaderFirst(HttpHeadersExtra.SEC_WEBSOCKET_ACCEPT);
  assertNull(websocketAcceptHeader);
}

protected void validateIsNotWebsocketUpgradeHttpResponse ( IHttpResponse response ) { String upgradeHeader = response . getHeaderFirst ( HttpHeaders . UPGRADE ) ; assertNull ( upgradeHeader ) ; String websocketAcceptHeader = response . getHeaderFirst ( HttpHeadersExtra . SEC_WEBSOCKET_ACCEPT ) ; assertNull ( websocketAcceptHeader ) ; }
validates the response is not a websocket upgrade permission .
