### Question:
EmailInboxDao extends HibernateDao<EmailInbox, Long> { public List<EmailInbox> queryInboxToSend(int amount) { return pageByProperty(Collections.singletonMap("state", (Object) EmailInbox.STATE_TO_SEND), 0, amount, "id", false); }  List<EmailInbox> queryInboxToSend(int amount);  }### Answer:
@Test public void testQueryInboxToSend() { List<EmailInbox> inboxList = emailInboxDao.queryInboxToSend(1); Object inbox = inboxList.get(0); Assert.assertNotNull(inboxList); Assert.assertEquals(1, inboxList.size()); }