TeamsRepository { public Observable<List<Team>> getTeamList() { return teamsLocalDataSource.teamEntityList().map(teamEntityToTeamMapper::map); } TeamsRepository(@NonNull TeamsLocalDataSource teamsLocalDataSource, @NonNull TeamEntityToTeamMapper teamEntityToTeamMapper); Observable<List<Team>> getTeamList(); Observable<Team> getTeam(String flag);  }
@Test public void givenATeamEntityListFromLocalApi() { given(teamsLocalDataSource.teamEntityList()).willReturn(Observable.just(FakeTeamLocalAPI.getFakeTeamEntityList())); teamsRepository.getTeamList(); verify(teamsLocalDataSource).teamEntityList(); }