OAuthController implements OAuthWebViewClient.Listener { @Override public void onError(WebViewException exception) { handleWebViewError(exception); dismissWebView(); } 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 testOnError() { final WebViewException webViewException = new WebViewException(TEST_ERROR_CODE, TEST_ERROR_DESC, TEST_URL); controller.onError(webViewException); verifyOnCompleteWithError("OAuth web view completed with an error"); }