### Question:
PlaylistViewModel extends BaseViewModel { public void addPlayList(String title){ Playlist playList = new Playlist(title); playlistRepository.addPlaylist(playList) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(); } @Inject  PlaylistViewModel(PlaylistRepository playlistRepository, PlaylistItemRepository playlistItemRepository); List<Integer> getVideoIdsToAdd(); void setVideoIdsToAdd(List<Integer> videoIdsToAdd); LiveData<List<Playlist>> getPlaylists(); void addPlayList(String title); void addVideosToPlaylist(List<Integer> videoIds, int playlistId); void deletePlayList(int playlistId);  }### Answer:
@Test public void addPlayList_callsTheRepository() { playlistViewModel.addPlayList("Playlist one"); verify(playlistRepository, times(1)).addPlaylist(any()); }