title: Create Device specific context robolectric
body: <p>I am new to Robolectric and I am trying to use it to unit test my application.
  A lot of my functions have Device specific contexts like, </p>
  
  <p>isNetworkAvailable(Context c), isLocationAvailable(Context c) etc.</p>
  
  <p>I am not sure, how to test functions like these using Robolectric.</p>
  
  <p>Any help is greatly appreciated.
  Thanks,</p>