anchor.diff:      .then((HttpClientRequest request) {
         expect(false);
       }, onError: (e) {
  -      expect(e is HandshakeException);
  +      expect(e is HandshakeException || e is SocketException);
       }));
   
     return Future.wait(testFutures);
  
positive.code: 
    var testFutures = [];
    testFutures.add(client.getUrl(Uri.parse('https://$HOST_NAME:$port/$result'))
      .then((HttpClientRequest request) { expect(false); },
          onError: (e) { expect(e is HandshakeException); }));
  
    client.badCertificateCallback = badCertificateCallback;
    testFutures.add( client.getUrl(Uri.parse('https://$HOST_NAME:$port/$result'))
  
negative.code:       expect(result == 'true');
        request.close().then((result) { });
      }, onError: (e) {
        if (result == 'false') expect (e is HandshakeException ||
                                       e is SocketException);
        else if (result == 'exception') expect (e is ExpectException ||
                                                e is SocketException);
        else expect (e is ArgumentError || e is SocketException);
      }));
  
    client.badCertificateCallback = null;
  