@Test
public void fromHttpResponse_whenCustomEvent_shouldGetNameAndData() throws Exception {

    String expectedCustomData = "Custom data";
    response.addHeader(AD_TYPE.getKey(), "custom");
    String expectedCustomEventName = "custom event name";
    response.addHeader(CUSTOM_EVENT_NAME.getKey(), expectedCustomEventName);
    response.addHeader(CUSTOM_EVENT_DATA.getKey(), expectedCustomData);
    AdLoadTask.CustomEventAdLoadTask customEventTask = (AdLoadTask.CustomEventAdLoadTask) AdLoadTask.fromHttpResponse(response, adViewController);
    assertThat(customEventTask.getParamsMap().get(CUSTOM_EVENT_NAME.getKey())).isEqualTo(expectedCustomEventName);
    assertThat(customEventTask.getParamsMap().get(CUSTOM_EVENT_DATA.getKey())).isEqualTo(expectedCustomData);
}