@Test
public void launchIntentForUserClick_whenNoMatchingActivity_shouldNotStartActivityAndReturnFalse() throws Exception {

    Context context = mock(Context.class);
    Intent intent = mock(Intent.class);
    stub(htmlWebView.wasClicked()).toReturn(true);
    doThrow(new ActivityNotFoundException()).when(context).startActivity(any(Intent.class));
    boolean result = subject.launchIntentForUserClick(context, intent, null);
    verify(htmlWebView, never()).onResetUserClick();
    assertThat(result).isFalse();
    assertThat(Robolectric.getShadowApplication().getNextStartedActivity()).isNull();
}