OAuthController implements OAuthWebViewClient.Listener { @Override public void onPageFinished(WebView webView, String url) { dismissSpinner(); webView.setVisibility(View.VISIBLE); } OAuthController(ProgressBar spinner, WebView webView, TwitterAuthConfig authConfig,
            OAuth1aService oAuth1aService, Listener listener); @Override void onPageFinished(WebView webView, String url); @Override void onSuccess(Bundle bundle); @Override void onError(WebViewException exception);  }
@Test public void testOnPageFinished() { controller.onPageFinished(mockWebView, TEST_URL); verify(mockSpinner).setVisibility(View.GONE); verify(mockWebView).setVisibility(View.VISIBLE); }