@Test
public void getCourses() {

    when(academyRepository.getAllCourses()).thenReturn(DataDummy.generateDummyCourses());
    List<CourseEntity> courseEntities = viewModel.getCourses();
    verify(academyRepository).getAllCourses();
    assertNotNull(courseEntities);
    assertEquals(5, courseEntities.size());
}