@Test
public void init_shouldAddJavascriptInterface() throws Exception {

    subject.init(customEventInterstitialListener, isScrollable, clickthroughUrl, redirectUrl);
    Object javascriptInterface = shadowOf(subject).getJavascriptInterface(MOPUB_JS_INTERFACE_NAME);
    assertThat(javascriptInterface).isNotNull();
    Method fireFinishLoad = javascriptInterface.getClass().getDeclaredMethod("fireFinishLoad");
    Robolectric.pauseMainLooper();
    boolean returnValue = (Boolean) fireFinishLoad.invoke(javascriptInterface);
    assertThat(returnValue).isTrue();
    verify(customEventInterstitialListener, never()).onInterstitialShown();
    Robolectric.unPauseMainLooper();
    verify(customEventInterstitialListener).onInterstitialLoaded();
}