### Question:
BreakTimeServiceImpl implements BreakTimeService { @Override public List<BreakTime> findAll() { log.info(LogMessage.IN_FIND_ALL); return repo.findAll(); }  @Override BreakTime save(BreakTime breakTime); @Override BreakTime findById(Long id); @Override Long deleteById(Long id); @Override List<BreakTime> findAll();  }### Answer:
@Test public void findAll() { List<BreakTime> expected = Arrays.asList(validBreakTime, notValidBreakTime); when(breakTimeRepo.findAll()).thenReturn(expected); assertEquals(expected, breakTimeService.findAll()); }
@Test public void findAllEmpty() { List<BreakTime> expected = Collections.emptyList(); when(breakTimeRepo.findAll()).thenReturn(expected); assertEquals(expected, breakTimeService.findAll()); }