@Test
public void fetchAdForUrl_shouldRouteMillennialBannerToCustomEventHandling() throws Exception {

    String json = "{\"adWidth\": 320, \"adHeight\": 50, \"adUnitID\": \"44310\"}";
    stub(adViewController.getAdConfiguration()).toReturn(mock(AdConfiguration.class));
    response.addHeader(AD_TYPE.getKey(), "millennial_native");
    response.addHeader(NATIVE_PARAMS.getKey(), json);
    Robolectric.addPendingHttpResponse(response);
    subject.fetchAdForUrl("ignored_url");
    Map<String, String> paramsMap = new HashMap<String, String>();
    paramsMap.put(CUSTOM_EVENT_NAME.getKey(), "com.mopub.mobileads.MillennialBanner");
    paramsMap.put(CUSTOM_EVENT_DATA.getKey(), json);
    verify(moPubView).loadCustomEvent(eq(paramsMap));
}