### Question:
LanguageServiceImpl implements LanguageService { @Override public List<LanguageDTO> getAllLanguages() { return modelMapper.map(languageRepo.findAll(), new TypeToken<List<LanguageDTO>>() { }.getType()); } @Autowired  LanguageServiceImpl(
        LanguageRepo languageRepo,
        @Lazy ModelMapper modelMapper, HttpServletRequest request); @Override List<LanguageDTO> getAllLanguages(); @Override String extractLanguageCodeFromRequest(); @Override Language findByCode(String code); @Override List<String> findAllLanguageCodes();  }### Answer:
@Test public void getAllAdvices() { List<LanguageDTO> expected = Collections.emptyList(); when(modelMapper.map(languageRepo.findAll(), new TypeToken<List<LanguageDTO>>() { }.getType())).thenReturn(expected); assertEquals(expected, languageService.getAllLanguages()); }