@Test
public void getAllModulesByCourse() {

    when(remote.getModules(courseId)).thenReturn(moduleResponses);
    ArrayList<ModuleEntity> moduleEntities = academyRepository.getAllModulesByCourse(courseId);
    verify(remote).getModules(courseId);
    assertNotNull(moduleEntities);
    assertEquals(moduleResponses.size(), moduleEntities.size());
}