@Test
public void fromHttpResponse_whenCustomEventDelegate_shouldConvertAdMobToCustomEvent() throws Exception {

    String expectedNativeParams = "{\"this is a json\":\"map\",\"whee\":\"look at me\"}";
    response.addHeader(AD_TYPE.getKey(), "admob_native");
    response.addHeader(NATIVE_PARAMS.getKey(), expectedNativeParams);
    AdLoadTask.CustomEventAdLoadTask customEventTask = (AdLoadTask.CustomEventAdLoadTask) AdLoadTask.fromHttpResponse(response, adViewController);
    assertThat(customEventTask.getParamsMap().get(CUSTOM_EVENT_NAME.getKey())).isEqualTo(GOOGLE_PLAY_SERVICES_BANNER.toString());
    String actualNativeParams = customEventTask.getParamsMap().get(CUSTOM_EVENT_DATA.getKey());
    JsonUtils.assertJsonStringMapsEqual(actualNativeParams, expectedNativeParams);
}