public void testStoredQuerySubqueryMultipleParens(){
StoredProcedure storedQuery = new StoredProcedure();
storedQuery.setProcedureName("proc1"); //$NON-NLS-1$
SPParameter parameter = new SPParameter(1, new Constant("param1")); //$NON-NLS-1$
storedQuery.setParameter(parameter);
From from = new From();
SubqueryFromClause sfc = new SubqueryFromClause("x", storedQuery); //$NON-NLS-1$
from.addClause(sfc);
Select select = new Select();
select.addSymbol(new ElementSymbol("x.a")); //$NON-NLS-1$
Query query = new Query();