@Test
public void onPageStarted_whenLoadedUrlStartsWithRedirectAndHasClickthrough_withoutUserClick_shouldNotOpenInBrowser() throws Exception {

    stub(htmlWebView.wasClicked()).toReturn(false);
    String url = "redirectUrlToLoad";
    WebView view = mock(WebView.class);
    subject.onPageStarted(view, url, null);
    verify(view).stopLoading();
    assertThat(Robolectric.getShadowApplication().getNextStartedActivity()).isNull();
}