@Test
public void shouldOverrideUrlLoading_withHttpUrl_withoutUserClick_shouldNotOpenBrowser() throws Exception {

    stub(htmlWebView.wasClicked()).toReturn(false);
    subject = new HtmlWebViewClient(htmlWebViewListener, htmlWebView, null, null);
    String validUrl = "http://www.mopub.com";
    boolean didOverrideUrl = subject.shouldOverrideUrlLoading(htmlWebView, validUrl);
    assertThat(didOverrideUrl).isTrue();
    verify(htmlWebViewListener, never()).onClicked();
    assertThat(Robolectric.getShadowApplication().getNextStartedActivity()).isNull();
}