### Question:
BaseEntityDao extends BaseDao implements IBaseEntityDao<T> { @Override public List<T> findByExample(T entity) { return super.getHibernateTemplate().findByExample(entity); } BaseEntityDao(); @Override BaseEntityDao<T> getSubClassEntityDao(Class<T> entityClass); @Override T findEntity(final Serializable id); @Override T findEntity(Class<T> entityClass, final Serializable id); @Override void saveEntity(T entity); @Override void saveOrUpdateEntity(T entity); @Override void updateEntity(T entity); @Override void deleteEntity(T entity); @Override List<T> findByExample(T entity); @Override void deleteEntity(Serializable id); @Override List<T> findAll(); @Override List<T> findByProperty(String propertyName, Object value); @Override List<T> findByProperty(Class<T> entityClass, String propertyName, Object value); @Override T findByUniqueProperty(String propertyName, Object value); @Override T findByUniqueProperty(Class<T> entityClass, String propertyName, Object value);  }### Answer:
@Test public void testFindByExample() { for (TLogInfo testUser : userMap.values()) { List<TLogInfo> entityList = baseEntityDao.findByExample(testUser); assertEquals("findByExample方法加载对象记录不全！", userMap.size(), entityList.size()); } }