@Test
public void fromHttpResponse_whenNoCustomEventName_shouldCreateLegacyCustomEventAdLoadTaskWithAHeader() throws Exception {

    String expectedCustomData = "Custom data";
    String expectedHeaderValue = "some stuff";
    response.addHeader(AD_TYPE.getKey(), "custom");
    response.addHeader(CUSTOM_EVENT_DATA.getKey(), expectedCustomData);
    response.addHeader(CUSTOM_SELECTOR.getKey(), expectedHeaderValue);
    AdLoadTask.LegacyCustomEventAdLoadTask customEventTask = (AdLoadTask.LegacyCustomEventAdLoadTask) AdLoadTask.fromHttpResponse(response, adViewController);
    Header taskHeader = customEventTask.getHeader();
    assertThat(taskHeader).isNotNull();
    assertThat(taskHeader.getName()).isEqualTo(CUSTOM_SELECTOR.getKey());
    assertThat(taskHeader.getValue()).isEqualTo(expectedHeaderValue);
}