ProcessDeploymentQueueDAO { public Integer totalRecordCount() { Session session = sessionFactory.openSession(); session.beginTransaction(); Criteria criteria = session.createCriteria(ProcessDeploymentQueue.class); Integer size = criteria.list().size(); session.getTransaction().commit(); session.close(); return size; }  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 testTotalRecordCount() throws Exception { LOGGER.info("Size of ProcessDeploymentQueue is:" + processDeploymentQueueDAO.totalRecordCount()); }