@Test
public void loadNativeAd_withInvalidCustomEventNativeData_shouldNotAddToServerExtras() throws Exception {

    testHttpResponseWithHeaders.addHeader(ResponseHeader.CUSTOM_EVENT_DATA.getKey(), "{ \"bad json");
    downloadResponse = new DownloadResponse(testHttpResponseWithHeaders);
    serverExtras.remove("key");
    CustomEventNativeAdapter.loadNativeAd(context, localExtras, downloadResponse, mCustomEventNativeListener);
    verify(mCustomEventNative).loadNativeAd(context, mCustomEventNativeListener, localExtras, serverExtras);
    verify(mCustomEventNativeListener, never()).onNativeAdFailed(any(NativeErrorCode.class));
    verify(mCustomEventNativeListener, never()).onNativeAdLoaded(any(NativeAdInterface.class));
}