### Question:
SpringJdbcQuery implements cn.bc.core.query.Query<T> { public T singleResult() { try { return this.jdbcTemplate.queryForObject(this.getSql(), this.sqlArgs.toArray(), this.rowMapper); } catch (EmptyResultDataAccessException e) { return null; } } private  SpringJdbcQuery();  SpringJdbcQuery(DataSource dataSource, RowMapper<T> rowMapper); void setSqlArgs(List<Object> sqlArgs); SpringJdbcQuery<T> setSql(String sql); cn.bc.core.query.Query<T> condition(
    cn.bc.core.query.condition.Condition condition); int count(); T singleResult(); List<T> list(); List<T> list(int pageNo, int pageSize); Page<T> page(int pageNo, int pageSize); List<Object> listWithSelect(String select);  }### Answer:
@Test public void testQuerySingleResult() { deleteAll(); insertOne(1); Query<Domain> q = createTestQuery(); Domain d = q.singleResult(); Assert.assertNotNull(d); Assert.assertEquals(new Long(1), d.getId()); }