static void processPreparedStatement(String sql, List[] expected,
ProcessorDataManager dataManager, CapabilitiesFinder capFinder,
QueryMetadataInterface metadata, List<?> values) throws Exception {
Command command = helpParse(sql);
CommandContext context = createCommandContext();
context.setMetadata(metadata);
ProcessorPlan plan = helpGetPlan(command, metadata, capFinder, context);
// Collect reference, set value
VariableContext vc = new VariableContext();
Iterator<?> valIter = values.iterator();
for (Reference ref : ReferenceCollectorVisitor.getReferences(command)) {
vc.setGlobalValue(ref.getContextSymbol(), valIter.next()); //$NON-NLS-1$
}
context.setVariableContext(vc);
// Run query
helpProcess(plan, context, dataManager, expected);
}