@Test
public void requestNativeAd_withValidUrl_shouldStartDownloadTaskWithUrl() {

    Robolectric.getUiThreadScheduler().pause();
    Robolectric.addPendingHttpResponse(200, "body");
    subject.requestNativeAd("http://www.mopub.com");
    verify(mockNetworkListener, never()).onNativeFail(any(NativeErrorCode.class));
    assertThat(wasDownloadTaskExecuted()).isTrue();
    List<?> latestParams = ShadowAsyncTasks.getLatestParams();
    assertThat(latestParams).hasSize(1);
    HttpGet httpGet = (HttpGet) latestParams.get(0);
    assertThat(httpGet.getURI().toString()).isEqualTo("http://www.mopub.com");
}