@Test
public void shouldOverrideUrlLoading_withNativeBrowserScheme_butOpaqueUri_withUserClick_shouldNotBeHandledByNativeBrowser() throws Exception {

    stub(htmlWebView.wasClicked()).toReturn(true);
    String opaqueNativeBrowserUriString = "mopubnativebrowser:navigate?url=http://mopub.com";
    subject = new HtmlWebViewClient(htmlWebViewListener, htmlWebView, null, null);
    subject.shouldOverrideUrlLoading(htmlWebView, opaqueNativeBrowserUriString);
    Intent startedActivity = assertActivityStarted();
    assertThat(startedActivity.getComponent().getClassName()).isEqualTo("com.mopub.common.MoPubBrowser");
    assertThat(startedActivity.getStringExtra(MoPubBrowser.DESTINATION_URL_KEY)).isEqualTo(opaqueNativeBrowserUriString);
    assertThat(startedActivity.getData()).isNull();
    verify(htmlWebViewListener).onClicked();
}