MraidBridge { public void setContentHtml(@NonNull String htmlData) { if (mMraidWebView == null) { MoPubLog.d("MRAID bridge called setContentHtml before WebView was attached"); return; } mHasLoaded = false; mMraidWebView.loadDataWithBaseURL(null, htmlData, "text/html", "UTF-8", null); } MraidBridge(@Nullable AdReport adReport, @NonNull PlacementType placementType); @VisibleForTesting  MraidBridge(@Nullable AdReport adReport, @NonNull PlacementType placementType,
            @NonNull MraidNativeCommandHandler mraidNativeCommandHandler); void setContentHtml(@NonNull String htmlData); void setContentUrl(String url); void notifyScreenMetrics(@NonNull final MraidScreenMetrics screenMetrics);  }
@Test public void attachView_thenSetContentHtml_shouldCallLoadDataWithBaseURL() { subjectBanner.setContentHtml("test-html"); verify(mockBannerWebView).loadDataWithBaseURL( null, "test-html", "text/html", "UTF-8", null); }