### Question:
UserContactsHibernateDao extends GenericDao<UserContactType> implements UserContactsDao { @Override public List<UserContactType> getAvailableContactTypes() { return session() .createQuery("from UserContactType") .setCacheable(true) .list(); } UserContactsHibernateDao(SessionFactory sessionFactory); @Override List<UserContactType> getAvailableContactTypes(); @Override UserContact getContactById(long id);  }### Answer:
@Test public void testGetAvailableContactTypes() { UserContactType type = ObjectsFactory.getDefaultUserContactType(); session.saveOrUpdate(type); session.clear(); List<UserContactType> types = dao.getAvailableContactTypes(); assertReflectionEquals(type, types.get(0)); }