@Test
public void getAllModulesByCourse() {

    MutableLiveData<List<ModuleEntity>> dummyModules = new MutableLiveData<>();
    dummyModules.setValue(DataDummy.generateDummyModules(courseId));
    when(local.getAllModulesByCourse(courseId)).thenReturn(dummyModules);
    Resource<List<ModuleEntity>> courseEntities = LiveDataTestUtil.getValue(academyRepository.getAllModulesByCourse(courseId));
    verify(local).getAllModulesByCourse(courseId);
    assertNotNull(courseEntities.data);
    assertEquals(moduleResponses.size(), courseEntities.data.size());
}