class HbaseQueryImpl implements HbaseQuery {

    @Override
    public List<DynaBean> select(String sql) throws SQLSyntaxErrorException, IOException {
        return select(sql, null, null);
    }

}

class HbaseQueryImplTest {

     HbaseQuery hbaseQuery;

    @Test
    public void testLimit() throws SQLSyntaxErrorException, IOException {

        String sql = "SELECT TIME_ID, AREA_NAME FROM report1 limit 3 offset 2";
        HbaseQuery hbaseQuery = new HbaseQueryImpl();
        List<DynaBean> rows = hbaseQuery.select(sql);
        printBean(rows);
        Assert.assertEquals(3, rows.size());
    }

}