### Question:
InboxDataSourceDAO extends DataSourceDAO implements InboxDAO { public long findInboxNextOrderNo() throws DAOException { try { List result = super.executeRawQuery(super.getFinder("find_inbox_next_order_no"), new Object[] {}); List resultEntry = (List) result.get(0); return ((Number) resultEntry.get(0)).longValue(); } catch (Exception e) { return 1; } }  DVO createDVO(); boolean findInbox(InboxDVO data); void addInbox(InboxDVO data); boolean updateInbox(InboxDVO data); void deleteInbox(InboxDVO data); long findInboxNextOrderNo();  }### Answer:
@Test public void testFindInboxNextOrderNo() throws DAOException { InboxDataSourceDAO dao = super.getTestingTarget(); long orderNo; orderNo = dao.findInboxNextOrderNo(); Assert.assertEquals(1, orderNo); InboxDVO dvo = (InboxDVO)dao.createDVO(); dvo.setMessageId("20080311-155320-90407@192.168.0.1"); dvo.setOrderNo(orderNo); dao.create(dvo); orderNo = dao.findInboxNextOrderNo(); Assert.assertEquals(2, orderNo); }