@Test
public void getCourseWithModules() {

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