### Question:
HibernateTemplateDAO extends HibernatePersistentObjectDAO<Template> implements TemplateDAO { @Override public List<Template> findAll() { try { return findByWhere(" 1=1", "order by _entity.name", null); } catch (PersistenceException e) { log.error(e.getMessage(), e); return new ArrayList<Template>(); } } HibernateTemplateDAO(); @Override List<Template> findAll(); @Override List<Template> findAll(long tenantId); @Override Template findByName(String name, long tenantId); @Override boolean delete(long id, int code); int countFolders(long id); @Override int countDocs(long id); @Override List<Template> findByType(int type, long tenantId); @Override void initialize(Template template);  }### Answer:
@Test public void testFindAll() { Collection<Template> templates = dao.findAll(); Assert.assertNotNull(templates); Assert.assertEquals(4, templates.size()); }