static void helpTest(String sql, String expectedString, Command expectedCommand) {
helpTest(sql, expectedString, expectedCommand, new ParseInfo());
}
static void helpTest(String sql, String expectedString, Command expectedCommand, ParseInfo info) {
Command actualCommand = null;
String actualString = null;
try {
actualCommand = QueryParser.getQueryParser().parseCommand(sql, info);
actualString = actualCommand.toString();
} catch(Throwable e) {
throw new RuntimeException(e);
}
assertEquals("Parse string does not match: ", expectedString, actualString); //$NON-NLS-1$
assertEquals("Command objects do not match: ", expectedCommand, actualCommand); //$NON-NLS-1$
assertEquals("Cloned command objects do not match: ", expectedCommand, actualCommand.clone()); //$NON-NLS-1$
}