### Question:
SimplePageHibernateDao extends GenericDao<SimplePage> implements SimplePageDao { public void createPage(SimplePage simplePage) { session().saveOrUpdate(simplePage); } SimplePageHibernateDao(SessionFactory sessionFactory); void createPage(SimplePage simplePage); SimplePage getPageByPathName(String pathName); @Override boolean isExist(String pagePathName);  }### Answer:
@Test public void testCreatePage() { SimplePage simplePage = ObjectsFactory.getDefaultSimplePage(); session.save(simplePage); dao.createPage(simplePage); session.evict(simplePage); SimplePage result = (SimplePage) session.get(SimplePage.class, simplePage.getId()); assertNotNull(result); assertEquals(simplePage.getId(), result.getId()); assertEquals(simplePage.getName(), result.getName()); assertEquals(simplePage.getContent(), result.getContent()); assertEquals(simplePage.getPathName(), result.getPathName()); }