AcademyViewModel extends ViewModel { public List<CourseEntity> getCourses() { return academyRepository.getAllCourses(); } AcademyViewModel(AcademyRepository mAcademyRepository); List<CourseEntity> getCourses();  }
@Test public void getCourses() { List<CourseEntity> courseEntities = viewModel.getCourses(); assertNotNull(courseEntities); assertEquals(5, courseEntities.size()); }