InstanceExecDAO { public Long totalRecordCount() { Session session = sessionFactory.openSession(); session.beginTransaction(); long size = session.createCriteria(InstanceExec.class).list().size(); session.getTransaction().commit(); session.close(); return size; }  List<com.wipro.ats.bdre.md.beans.table.InstanceExec> list(Integer processId, Integer pageNum, Integer numResults); InstanceExec getLatestExecofProcess(Integer processId); Long totalRecordCount(); InstanceExec get(Long id); Long insert(InstanceExec instanceExec); void update(InstanceExec instanceExec); void delete(Long id); List<SLAMonitoringBean> slaMonitoringData(List<Process> subProcessList);  }
@Ignore @Test public void testTotalRecordCount() throws Exception { LOGGER.info("Size of InstanceExec is:" + instanceExecDAO.totalRecordCount()); }