### Question:
SpringJdbcQuery implements cn.bc.core.query.Query<T> { public List<T> list() { return this.jdbcTemplate.query(getSql().replace("!!", ""), this.sqlArgs.toArray(), this.rowMapper); } 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 testQueryList() { deleteAll(); insertOne(1); insertOne(2); Query<Domain> q = createTestQuery(); List<Domain> list = q.list(); Assert.assertNotNull(list); Assert.assertEquals(2, list.size()); Assert.assertEquals(new Long(1), list.get(0).getId()); Assert.assertEquals(new Long(2), list.get(1).getId()); }
@Test public void testQueryPage1() { deleteAll(); for (int i = 1; i < 11; i++) { insertOne(i); } Query<Domain> q = createTestQuery(); List<Domain> list = q.list(1, 5); Assert.assertNotNull(list); Assert.assertEquals(5, list.size()); Assert.assertEquals(new Long(1), list.get(0).getId()); Assert.assertEquals(new Long(5), list.get(4).getId()); }