### Question:
PropertyHibernateDao extends GenericDao<Property> implements PropertyDao { @Override public void saveOrUpdate(Property entity) { throw new UnsupportedOperationException("Value of \"Property\" cannot be changed in a forum."); } PropertyHibernateDao(SessionFactory sessionFactory); @Override void saveOrUpdate(Property entity); @Override Property getByName(String name);  }### Answer:
@Test(expectedExceptions = {UnsupportedOperationException.class}) public void testUpdate() { propertyDao.saveOrUpdate(property); }