### Question:
SpringJdbcQuery implements cn.bc.core.query.Query<T> { public Page<T> page(int pageNo, int pageSize) { return new Page<>(pageNo, pageSize, this.count(), this.list(pageNo, pageSize)); } 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 testQueryPage2() { deleteAll(); for (int i = 1; i < 11; i++) { insertOne(i); } Query<Domain> q = createTestQuery(); Page<Domain> page = q.page(1, 5); Assert.assertNotNull(page); Assert.assertEquals(0, page.getFirstResult()); Assert.assertEquals(2, page.getPageCount()); Assert.assertEquals(5, page.getPageSize()); Assert.assertEquals(10, page.getTotalCount()); List<Domain> list = page.getData(); 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()); }