Expression actual = QueryParser.getQueryParser().parseExpression(sql);
String actualString = actual.toString();
assertEquals("Parse string does not match: ", expectedString, actualString); //$NON-NLS-1$
assertEquals("Command objects do not match: ", expected, actual); //$NON-NLS-1$
assertEquals("Cloned command objects do not match: ", expected, actual.clone()); //$NON-NLS-1$
}
static void helpException(String sql) {
helpException(sql, null);
}