@Ignore("MRAID 2.0")
@Test
public void showUserDownloadImageAlert_withAppContext_whenDownloadImageFails_shouldDisplayFailureToastAndNotDownloadImage() throws Exception {

    response = new TestHttpResponseWithHeaders(200, FAKE_IMAGE_DATA);
    Robolectric.addPendingHttpResponse(response);
    assertThat(ShadowToast.shownToastCount()).isEqualTo(0);
    subject.storePicture(context, "this is an invalid image url and cannot be downloaded", mraidCommandFailureListener);
    ThreadUtils.pause(TIME_TO_PAUSE_FOR_NETWORK);
    assertThat(ShadowToast.shownToastCount()).isEqualTo(1);
    assertThat(ShadowToast.getTextOfLatestToast()).isEqualTo("Downloading image to Picture gallery...");
    Robolectric.runUiThreadTasks();
    assertThat(ShadowToast.shownToastCount()).isEqualTo(2);
    assertThat(ShadowToast.getTextOfLatestToast()).isEqualTo("Image failed to download.");
    assertThat(expectedFile.exists()).isFalse();
    assertThat(expectedFile.length()).isEqualTo(0);
}