}
@Test public void testVirtualProcedure(){
ElementSymbol x = new ElementSymbol("x"); //$NON-NLS-1$
String intType = new String("integer"); //$NON-NLS-1$
Statement dStmt = new DeclareStatement(x, intType);
GroupSymbol g = new GroupSymbol("m.g"); //$NON-NLS-1$
From from = new From();
from.addGroup(g);
Select select = new Select();
ElementSymbol c1 = new ElementSymbol("c1", false); //$NON-NLS-1$
select.addSymbol(c1);
select.addSymbol(new ElementSymbol("c2", false)); //$NON-NLS-1$
Query query = new Query();
query.setSelect(select);
query.setFrom(from);
x = new ElementSymbol("x"); //$NON-NLS-1$
c1 = new ElementSymbol("mycursor.c1", true); //$NON-NLS-1$
Statement assignmentStmt = new AssignmentStatement(x, c1);
Block block = new Block();
block.addStatement(assignmentStmt);
Block ifBlock = new Block();
Statement continueStmt = new ContinueStatement();
ifBlock.addStatement(continueStmt);
Criteria crit = new CompareCriteria(x, CompareCriteria.GT,
new Constant(new Integer(5)));
IfStatement ifStmt = new IfStatement(crit, ifBlock);
block.addStatement(ifStmt);