@Test
public void initializeViewNoData()
        throws Exception {

    // given
    repositoriesPresenter.repositories = null;
    repositoriesPresenter.isDownloading = true;
    repositoriesPresenter.downloadedAll = false;
    repositoriesPresenter.currentPage = 1;
    repositoriesPresenter.getRepositoriesInteractor = getRepositoriesInteractor;
    repositoriesPresenter.githubRepoRepository = githubRepoRepository;
    Single<List<GithubRepo>> task = Mockito.mock(Single.class);
    Mockito.when(getRepositoriesInteractor.getRepositories(RepositoriesPresenter.REPO_NAME, 1)).thenReturn(task);
    // when
    repositoriesPresenter.attachView(viewContract);
    // then
    assertThat(repositoriesPresenter.isDownloading).isTrue();
    Mockito.verify(getRepositoriesInteractor).getRepositories(RepositoriesPresenter.REPO_NAME, 1);
}