BookmarkViewModel extends ViewModel { List<CourseEntity> getBookmarks() { return academyRepository.getBookmarkedCourses(); } BookmarkViewModel(AcademyRepository mAcademyRepository);   }
@Test public void getBookmark() { List<CourseEntity> courseEntities = viewModel.getBookmarks(); assertNotNull(courseEntities); assertEquals(5, courseEntities.size()); }