ServersDAO { public Servers get(Integer id) { Session session = sessionFactory.openSession(); session.beginTransaction(); Servers servers = (Servers) session.get(Servers.class, id); session.getTransaction().commit(); session.close(); return servers; }  List<Servers> list(Integer pageNum, Integer numResults); Integer totalRecordCount(); Servers get(Integer id); Integer insert(Servers servers); void update(Servers servers); void delete(Integer id);  }
@Ignore @Test public void testGet() throws Exception { LOGGER.info("Servers(123461) name:" + serversDAO.get(123461).getServerName()); }