### Question:
PostServiceImpl implements PostService { @Override public List<Tag> getAllActiveTags() { return tagDao.findAllByActiveTrueOrderByNameDesc(); }  @Override Page<Post> getPost(Pageable page); @Override @Transactional(readOnly = false) Post save(Post post); @Override Post read(Long postId); @Override @Transactional(readOnly = false) void delete(Long postId); @Override long getNrOfPosts(); @Override List<User> getAllUsers(); @Override List<Tag> getAllActiveTags();  }### Answer:
@Test public void testGetAllActiveTags() { postService.getAllActiveTags(); verify(tagDao, times(1)).findAllByActiveTrueOrderByNameDesc(); }