### Question:
BaseDao extends AbstractDAO<T> { public List<Map<String, Object>> findAll(SearchModel search) { Result<Map<String, Object>> resultPair = queryAll(search).pairList(); search.setTotalCount(resultPair.getTotalCount()); ResponseHeadersUtil.addTotalCount(search); return resultPair.getList(); } @Inject  BaseDao(SessionFactory sessionFactory); Criteria<T> queryAllStrict(SearchModel search); Criteria<Map<String, Object>> queryAll(SearchModel search); Criteria<E> queryAll(SearchModel search, Class<E> transformClass); List<T> findAllStrict(SearchModel search); List<Map<String, Object>> findAll(SearchModel search); List<E> findAll(SearchModel search, Class<E> transformClass); List<T> findAllStrict(); T findById(Serializable oid); @SuppressWarnings("unchecked") T findById(Class<? extends RobeEntity> clazz, Serializable oid); T create(T entity); T update(T entity); T delete(T entity); void flush(); @SuppressWarnings("unchecked") T merge(T entity); T detach(T entity);  }### Answer:
@Test public void findAll() throws Exception { BaseDao<TestEntity> baseDao = new BaseDao<>(factory); }