@Test
public void fromHttpResponse_whenHtmlInterstitial_shouldConvertToCustomEventInterstitial() throws Exception {

    String htmlData = "<html></html>";
    response = new TestHttpResponseWithHeaders(200, htmlData);
    addExpectedResponseHeaders("html");
    stub(adViewController.getMoPubView()).toReturn(mock(MoPubInterstitial.MoPubInterstitialView.class));
    AdLoadTask.CustomEventAdLoadTask customEventTask = (AdLoadTask.CustomEventAdLoadTask) AdLoadTask.fromHttpResponse(response, adViewController);
    assertThat(customEventTask.getParamsMap().get(CUSTOM_EVENT_NAME.getKey())).isEqualTo(HTML_INTERSTITIAL.toString());
    String actualJsonData = customEventTask.getParamsMap().get(CUSTOM_EVENT_DATA.getKey());
    JsonUtils.assertJsonStringMapsEqual(actualJsonData, standardExpectedJson);
}