BufferManager bufferMgr = BufferManagerFactory.getStandaloneBufferManager();
CommandContext context = new CommandContext("pID", null, null, null, 1); //$NON-NLS-1$
QueryProcessor processor = new QueryProcessor(plan, context, bufferMgr, dataMgr);
processor.setNonBlocking(true);
BatchCollector collector = processor.createBatchCollector();
TeiidComponentException failOnDefaultException = null;
try{
collector.collectTuples();
} catch (TeiidComponentException e){
failOnDefaultException = e;
}
assertNotNull("Query processing should have failed on default of choice node.", failOnDefaultException); //$NON-NLS-1$