InstanceExecDAO { public InstanceExec get(Long id) { Session session = sessionFactory.openSession(); session.beginTransaction(); InstanceExec instanceExec = (InstanceExec) session.get(InstanceExec.class, id); session.getTransaction().commit(); session.close(); return instanceExec; }  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);  }
@Test @Ignore public void testGet() throws Exception { LOGGER.info("name of process of InstanceExec(2) is:" + instanceExecDAO.get((long) 2).getEndTs()); }