### Question:
HibernateGenericDAO extends HibernatePersistentObjectDAO<Generic> implements GenericDAO { @Override public boolean store(Generic entity) throws PersistenceException { boolean stored = super.store(entity); flush(); return stored; } HibernateGenericDAO(); @Override boolean delete(long genericId, int code); @Override Generic findByAlternateKey(String type, String subtype, Long qualifier, long tenantId); @Override List<Generic> findByTypeAndSubtype(String type, String subtype, Long qualifier, Long tenantId); @Override void initialize(Generic generic); @Override boolean store(Generic entity);  }### Answer:
@Test public void testStore() throws PersistenceException { Generic generic = new Generic(); generic.setType("xx"); generic.setSubtype("xxx"); generic.setInteger1(22L); generic.setString1("aaa"); Assert.assertTrue(dao.store(generic)); generic = dao.findById(generic.getId()); Assert.assertEquals("xx", generic.getType()); Assert.assertEquals("xxx", generic.getSubtype()); Assert.assertEquals(new Long(22), generic.getInteger1()); Assert.assertEquals("aaa", generic.getString1()); }