public void testSelectProcedure() throws Exception {
String json = "{query:{type:'userprocedure', ctype:'select', command=\"sample@selectEmpBy()\", page:{listnum:5, pageno:1} }}";
JSONObject jo = JSONObject.fromObject(json);
QueryObj cmd = new JSONParser(dc).parseToQueryable(jo);
// querytype
assertEquals(QueryType.USER_PROCEDURE, cmd.getQueryType());
// command type
assertEquals(IQueryable.QUERY_COMMAND, cmd.getCommandType());
// page
Page page = cmd.getPage() ;
assertEquals(5, page.getListNum()) ;
assertEquals(1, page.getPageNo()) ;
// param
assertEquals(0, cmd.getParams().size()) ;
JSONObject result = cmd.execute() ;
assertEquals(5, result.getJSONObject("RESULT").getJSONArray("ROWS").size() ) ;
}