### Question:
ReviewServiceImpl implements ReviewService { @Override @Transactional(readOnly = true) public List<Review> getReviews() { return reviewDAO.findAll(); } @Autowired  ReviewServiceImpl(ReviewDAO reviewDAO); @Override @Transactional(readOnly = true) List<Review> getReviews(); @Override @Transactional(readOnly = true) List<Review> getReviews(int offset, int limit); @Override @Transactional(readOnly = true) long getTotalCount();  }### Answer:
@Test public void shouldGetReviews() throws Exception { ImmutableList<Review> reviews = ImmutableList.of(); Mockito.when(reviewDAO.findAll()).thenReturn(reviews); List<Review> result = reviewService.getReviews(); assertThat(result).isSameAs(reviews); }