@Test
public void getAdView_shouldSetUpForBroadcastingFail() throws Exception {

    subject.getAdView();
    BroadcastReceiver broadcastReceiver = mock(BroadcastReceiver.class);
    ShadowLocalBroadcastManager.getInstance(subject).registerReceiver(broadcastReceiver, getHtmlInterstitialIntentFilter());
    TestHtmlInterstitialWebViewFactory.getLatestListener().onInterstitialFailed(UNSPECIFIED);
    ArgumentCaptor<Intent> intentCaptor = ArgumentCaptor.forClass(Intent.class);
    verify(broadcastReceiver).onReceive(any(Context.class), intentCaptor.capture());
    Intent intent = intentCaptor.getValue();
    assertThat(intent.getAction()).isEqualTo(ACTION_INTERSTITIAL_FAIL);
    assertThat(shadowOf(subject).isFinishing()).isTrue();
}