Navigator { public void navigateToServerSearchActivity(Context context) { Intent intentToLaunch = ServerSearchActivity.getCallingIntent(context); startActivity(context, intentToLaunch); } @Inject  Navigator(); void finishActivity(Activity activity, boolean isSuccess,
      String extraKey, T extra); void finishActivity(Activity activity, boolean isSuccess,
      Map<String, T> extras); void finishActivity(Activity activity); void navigateToServerSearchActivity(Context context); void navigateToServerFoundActivity(Activity activity, final ServerModel serverModel);  }
@Test(expected = IllegalArgumentException.class) public void shouldThrowExceptionNavigatingToServerSearchActivityGivenNullContext() throws Exception { navigator.navigateToServerSearchActivity(null); }