title: Simulate no network using Retrofit and MockWebServer
body: <p>I want to simulate the no network case when using <code>RetroFit</code> and <code>MockWebServer</code>. </p>
  
  <p>Im currently testing using <code>Espresso</code> and supplying the <code>MockWebServer</code>s url to the <code>RestAdapter</code> before I start my tests. This works great for mocking server responses and so on but I cant see a simple way to script the <code>java.net.ConnectException</code> exception thrown when a device has no network. I can see the MockResponse allows throttling simulation and so on but not a custom exception. </p>
  
  <p>I know I could go the root of mocking the actual web api interface used by <code>retrofit</code> but I would like to use the same approach as my other tests if possible by using <code>MockWebServer</code>. </p>
  
  <p>I imagine I've just missed something simple :)</p>
  
  <p>Thanks</p>