### Question:
HibernateAttributeSetDAO extends HibernatePersistentObjectDAO<AttributeSet> implements AttributeSetDAO { @Override public List<AttributeSet> findAll() { try { return findByWhere(" 1=1", "order by _entity.name", null); } catch (PersistenceException e) { log.error(e.getMessage(), e); return new ArrayList<AttributeSet>(); } } HibernateAttributeSetDAO(); @Override List<AttributeSet> findAll(); @Override List<AttributeSet> findAll(long tenantId); @Override AttributeSet findByName(String name, long tenantId); @Override boolean delete(long id, int code); @Override List<AttributeSet> findByType(int type, long tenantId); void setOptionsDao(AttributeOptionDAO optionsDao); @Override boolean store(AttributeSet set); void setTemplateDao(TemplateDAO templateDao); @Override Map<Long, AttributeSet> load(long tenantId); @Override Map<String, Attribute> findAttributes(long tenantId, Long setId);  }### Answer:
@Test public void testFindAll() { Collection<AttributeSet> sets = dao.findAll(); Assert.assertNotNull(sets); Assert.assertEquals(1, sets.size()); }