@Test
public void loadPositions_thenFailAfterMaxRetryTime_shouldCallFailureHandler() {

    ServerPositioningSource.MAXIMUM_RETRY_TIME_MILLISECONDS = 999;
    subject.loadPositions("test_ad_unit", mockPositioningListener);
    verify(mockDownloadTaskProvider).get(taskListenerCaptor.capture());
    taskListenerCaptor.getValue().onComplete("some_url", mockInvalidJsonResponse);
    Robolectric.getUiThreadScheduler().advanceToLastPostedRunnable();
    verify(mockPositioningListener).onFailed();
}