### Question:
BookDaoImpl implements BookDao { @SuppressWarnings("unchecked") @Override public List<Book> query(int start, int pagesize) { return getSession().createCriteria(Book.class).setFirstResult(start).setMaxResults(pagesize).list(); }  Session getSession(); @Override void add(Book book); @SuppressWarnings("unchecked") @Override List<Book> query(int start, int pagesize); @Override void update(Book book); @Override void delete(Book book); @Override void delete(int id); @Override Book load(int id);  }### Answer:
@Test public void query(){ List<Book> list = bookDao.query(5, 5); for (Book book : list) { System.out.println(book.getName()); } }