It could. I ended up using a new HttpClient not mocked to ensure I get a connection exception and a timeout one, using a trick on local IPs. I don't know if it's trully multiplatform yet tho, also it could not work if your local configuration matches this, but the low probability of this event is probably good enough for me.