JournalsFeService { public List<JournalModel> getAll() { final List<Journal> journals = this.journalServiceBean.findAll(); return map(journals); } JournalsFeService(final JournalServiceBean journalServiceBean); List<JournalModel> getAll();  }
@Test public void testGetAll() { final int count = 10; final List<Journal> journals = ServiceTestHelper.createJournals(count); when(this.journalServiceBean.findAll()).thenReturn(journals); final List<JournalModel> result = this.journalsFeService.getAll(); BDDAssertions.then(result).isNotNull(); BDDAssertions.then(result.size()).isEqualTo(count); }