### Question:
AuthorServiceImpl implements AuthorService { @Override public List<Author> getAllAuthors() { SqlSession sqlSession = null; try { sqlSession = MybatisUtil.getSqlSession(); AuthorMapper authorMapper = sqlSession.getMapper(AuthorMapper.class); return authorMapper.getAllAuthors(); } finally { if (sqlSession != null) { sqlSession.close(); } } }  @Override int addAuthor(Author author); @Override int deleteAuthor(int authorId); @Override int updateAuthor(Author author); @Override List<Author> getAllAuthors(); @Override int getAllAuthorsCount();  }### Answer:
@Test public void testGetAllAuthors() throws Exception { Assert.assertEquals(true, authorService.getAllAuthors().size() > 0); }