public void helpTestVisitor(String vdb, String input, String expectedOutput) {
// Convert from sql to objects
Command obj = TranslationHelper.helpTranslate(vdb, input);
TranslatedCommand tc = new TranslatedCommand(Mockito.mock(ExecutionContext.class), trans);
try {
tc.translateCommand(obj);
} catch (TranslatorException e) {
throw new RuntimeException(e);
}
assertEquals("Did not get correct sql", expectedOutput, tc.getSql()); //$NON-NLS-1$
}