### Question:
DataSetService { public DataSet getByName(final String name) { return dbUtil.withDao(DataSet.class, new DbUtil.Operation<DataSet, DataSet>() { @Override public DataSet operate(Dao<DataSet, String> dao) throws SQLException { QueryBuilder<DataSet, String> queryBuilder = dao.queryBuilder(); queryBuilder.where().like(NAME, name); return queryBuilder.queryForFirst(); } }); }  List<DataSet> all(); DataSet getByName(final String name);  }### Answer:
@Test public void shouldGetByName() throws Exception { DataSet dataSet = dataSetService.getByName("lmis dataset Daily"); assertThat(dataSet, is(notNullValue())); assertThat(dataSet.getId(), is("lmis_dataset_daily")); }