### Question:
BookServiceImpl implements BookService { @Override public List<BookDO> getBookByKeyword(String q) { List<BookDO> books = bookMapper.selectByTitleLikeKeyword(q); return books; }  @Override boolean createBook(CreateOrUpdateBookDTO validator); @Override List<BookDO> getBookByKeyword(String q); @Override boolean updateBook(BookDO book, CreateOrUpdateBookDTO validator); @Override BookDO getById(Long id); @Override List<BookDO> findAll(); @Override boolean deleteById(Long id);  }### Answer:
@Test public void getBookByKeyword() { BookDO bookDO = new BookDO(); bookDO.setTitle(title); bookDO.setAuthor(author); bookDO.setImage(image); bookDO.setSummary(summary); bookMapper.insert(bookDO); List<BookDO> books = bookService.getBookByKeyword("%千里%"); boolean anyMatch = books.stream().anyMatch(bo -> bo.getTitle().equals(title) && bo.getAuthor().equals(author)); assertTrue(anyMatch); }