### Question:
WeaponDAO extends OwnedIdentifiableTableDAO<Long, Weapon> { @Override public void update(OwnedObject<Long, Weapon> rowData) throws DataAccessException { try { beginTransaction(); itemDAO.update(OwnedObject.of(rowData.getOwnerId(), (Item) rowData.getObject())); super.update(rowData); setTransactionSuccessful(); } finally { endTransaction(); } } WeaponDAO(Context context); @Override Long add(OwnedObject<Long, Weapon> rowData); @Override void update(OwnedObject<Long, Weapon> rowData);  }### Answer:
@Test public void testUpdate() throws DataAccessException { Weapon toUpdate = weapon2; setValues(toUpdate, weapon2.getId(), "Longer Bow", 5.0, 3, "6", "x3", 120, "N/A", 40, WeaponType.PIERCING, Size.LARGE); dao.update(getTestCharacterId(), toUpdate); Weapon updated = dao.find(toUpdate.getId()); assertEquals(toUpdate, updated); }