@Test
public void getModules() {

    when(academyRepository.getAllModulesByCourse(courseId)).thenReturn(dummyModules);
    List<ModuleEntity> moduleEntities = viewModel.getModules();
    verify(academyRepository).getAllModulesByCourse(courseId);
    assertNotNull(moduleEntities);
    assertEquals(7, moduleEntities.size());
}