@Test
public void getAllCourses() {

    MutableLiveData<List<CourseEntity>> dummyCourses = new MutableLiveData<>();
    dummyCourses.setValue(DataDummy.generateDummyCourses());
    when(local.getAllCourses()).thenReturn(dummyCourses);
    Resource<List<CourseEntity>> courseEntities = LiveDataTestUtil.getValue(academyRepository.getAllCourses());
    verify(local).getAllCourses();
    assertNotNull(courseEntities.data);
    assertEquals(courseResponses.size(), courseEntities.data.size());
}