MoPubNative { private void loadNativeAd( @Nullable final RequestParameters requestParameters, @Nullable final Integer sequenceNumber) { final Context context = getContextOrDestroy(); if (context == null) { return; } final NativeUrlGenerator generator = new NativeUrlGenerator(context) .withAdUnitId(mAdUnitId) .withRequest(requestParameters); if (sequenceNumber != null) { generator.withSequenceNumber(sequenceNumber); } final String endpointUrl = generator.generateUrlString(Constants.HOST); if (endpointUrl != null) { MoPubLog.d("Loading ad from: " + endpointUrl); } requestNativeAd(endpointUrl); } @Deprecated  MoPubNative(@NonNull final Context context,
            @NonNull final String adUnitId,
            @NonNull final MoPubNativeListener moPubNativeListener);  MoPubNative(@NonNull final Context context,
                @NonNull final String adUnitId,
                @NonNull final MoPubNativeNetworkListener moPubNativeNetworkListener); void setNativeEventListener(@Nullable final MoPubNativeEventListener nativeEventListener); void destroy(); void setLocalExtras(@Nullable final Map<String, Object> localExtras); void makeRequest(); void makeRequest(@Nullable final RequestParameters requestParameters); void makeRequest(@Nullable final RequestParameters requestParameters,
            @Nullable Integer sequenceNumber);  }
@Ignore("Flaky thread scheduling is preventing test stability.") @Test public void loadNativeAd_shouldQueueAsyncDownloadTask() { Robolectric.getUiThreadScheduler().pause(); subject.loadNativeAd(null); assertThat(Robolectric.getUiThreadScheduler().enqueuedTaskCount()).isEqualTo(1); }