@Test
public void getBookmark() {

    ArrayList<CourseEntity> dummyCourses = DataDummy.generateDummyCourses();
    MutableLiveData<List<CourseEntity>> courses = new MutableLiveData<>();
    courses.setValue(dummyCourses);
    when(academyRepository.getBookmarkedCourses()).thenReturn(courses);
    List<CourseEntity> courseEntities = viewModel.getBookmarks().getValue();
    verify(academyRepository).getBookmarkedCourses();
    assertNotNull(courseEntities);
    assertEquals(5, courseEntities.size());
    viewModel.getBookmarks().observeForever(observer);
    verify(observer).onChanged(dummyCourses);
}