@Test
public void getTasks_requestsAllTasksFromLocalDataSource() {

    // Given that the local data source has data available
    setTasksAvailable(mTasksLocalDataSource, TASKS);
    // And the remote data source does not have any data available
    setTasksNotAvailable(mTasksRemoteDataSource);
    // When tasks are requested from the tasks repository
    mTasksRepository.getTasks().subscribe(mTasksTestSubscriber);
    // Then tasks are loaded from the local data source
    Mockito.verify(mTasksLocalDataSource).getTasks();
    mTasksTestSubscriber.assertValue(TASKS);
}