### Question:
DatabaseSetDao extends BaseDao { public DatabaseSet getDatabaseSetByName(String name) throws SQLException { String sql = "select id, name, db_type, strategy_source, class_name, group_id, update_user_no, update_time FROM databaseset WHERE name = '" + name + "' limit 1"; List<DatabaseSet> list = this.queryBySql(sql, DatabaseSet.class); return CollectionUtils.isNotEmpty(list) ? list.get(0) : null; }  Long insertDatabaseSet(DatabaseSet dbset); int updateDatabaseSet(DatabaseSet dbset); int deleteDatabaseSetById(Long dbsetId); int deleteDatabaseSetEntryByDbsetId(Long dbsetId); DatabaseSet getDatabaseSetById(Long id); DatabaseSet getDatabaseSetByName(String name); List<DatabaseSet> getAllDatabaseSetByName(String name); List<DatabaseSet> getAllDatabaseSetByNames(List<String> names); List<DatabaseSet> getAllDatabaseSetById(Long id); List<DatabaseSetView> getAllDatabaseSetByProjectId(Long projectId); List<DatabaseSet> getAllDatabaseSetByGroupId(Long groupId); DatabaseSetEntry getMasterDatabaseSetEntryByDatabaseSetId(Long dbset_id); Long getDbSetTotalCount(Paging<DatabaseSet> paging); List<DatabaseSetView> findDbSetPageList(Paging<DatabaseSet> paging); Long getDbSetTotalCountByAppid(Paging<DatabaseSet> paging); List<DatabaseSetView> findDbSetPageListByAppid(Paging<DatabaseSet> paging);  }### Answer:
@Test public void getDatabaseSetByName() throws Exception { DatabaseSet databaseset = databaseSetDao.getDatabaseSetByName("test_das"); System.out.println("getDatabaseSetByName :-------> " + databaseset); Assert.assertTrue(databaseset != null); }