@Test
public void getBookmarkedCourses() {

    doAnswer(invocation -> {
        ((RemoteDataSource.LoadCoursesCallback) invocation.getArguments()[0])
                .onAllCoursesReceived(courseResponses);
        return null;
    }).when(remote).getAllCourses(any(RemoteDataSource.LoadCoursesCallback.class));
    List<CourseEntity> courseEntities = LiveDataTestUtil.getValue(academyRepository.getBookmarkedCourses());
    verify(remote).getAllCourses(any(RemoteDataSource.LoadCoursesCallback.class));
    assertNotNull(courseEntities);
    assertEquals(courseResponses.size(), courseEntities.size());
}