MoPubBrowser extends Activity { @Override protected void onPause() { super.onPause(); CookieSyncManager.getInstance().stopSync(); WebViews.onPause(mWebView, isFinishing()); }  static void open(final Context context, final String url); @Override void onCreate(Bundle savedInstanceState); @Override void finish(); static final String DESTINATION_URL_KEY; }
@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR1) @Test public void onPause_withIsFinishingFalse_shouldPauseWebView() throws Exception { subject.onPause(); verify(mockWebView, never()).stopLoading(); verify(mockWebView, never()).loadUrl(""); verify(mockWebView).onPause(); }