### Question:
ArmorDAO extends OwnedIdentifiableTableDAO<Long, Armor> { @Override public void update(OwnedObject<Long, Armor> rowData) throws DataAccessException { try { beginTransaction(); itemDAO.update(OwnedObject.of(rowData.getOwnerId(), (Item) rowData.getObject())); super.update(rowData); setTransactionSuccessful(); } finally { endTransaction(); } } ArmorDAO(Context context); @Override Long add(OwnedObject<Long, Armor> rowData); @Override void update(OwnedObject<Long, Armor> rowData); int getMaxDexForCharacter(long characterId); int getArmorCheckPenaltyForCharacter(long characterId);  }### Answer:
@Test public void testUpdate() throws DataAccessException { Armor toUpdate = m_armor2; setValues(m_armor2, m_armor2.getId(), "Larger Hat", 2.0, true, 11, 25, 101, 12, 21, "Hat thing", Size.MEDIUM); dao.update(getTestCharacterId(), toUpdate); Armor updated = dao.find(toUpdate.getId()); assertEquals(toUpdate, updated); }