### Question:
VideoListViewModel extends BaseVideoListViewModel { public LiveData<List<Video>> getVideoList() { return videoList; } @Inject  VideoListViewModel(VideoRepository videoRepository); LiveData<List<Video>> getVideoList();  }### Answer:
@Test public void immediatelyFetchesVideos(){ verify(videoRepository, times(1)).getVideoList(); }
@Test public void getDataWhenRepoIsNotEmpty() throws Exception { List<Video> videoList = viewModel.getVideoList().getValue(); assertEquals(2, videoList.size()); TestUtil.assertEqualsVideoLists(videoList, mockVideoList); }