ProcessDeploymentQueueDAO { public List<ProcessDeploymentQueue> list(Integer pageNum, Integer numResults) { Session session = sessionFactory.openSession(); session.beginTransaction(); Criteria criteria = session.createCriteria(ProcessDeploymentQueue.class).addOrder(Order.desc("deploymentId")); criteria.setFirstResult(pageNum); criteria.setMaxResults(numResults); List<ProcessDeploymentQueue> processDeploymentQueues = criteria.list(); session.getTransaction().commit(); session.close(); return processDeploymentQueues; }  List<ProcessDeploymentQueue> list(Integer pageNum, Integer numResults); Integer totalRecordCount(); ProcessDeploymentQueue get(Long id); Long insert(ProcessDeploymentQueue processDeploymentQueue); void update(ProcessDeploymentQueue processDeploymentQueue); ProcessDeploymentQueue insertProcessDeploymentQueue(Integer processId, String userName); void delete(Long id);  }
@Ignore @Test public void testList() throws Exception { LOGGER.info("Size of ProcessDeploymentQueue is atleast:" + processDeploymentQueueDAO.list(0, 10).size()); }