* Asserts that an MDX expression depends upon a given list of dimensions.
*/
public void assertExprDependsOn(String expr, String hierList) {
// Construct a query, and mine it for a parsed expression.
// Use a fresh connection, because some tests define their own dims.
final Connection connection = getConnection();
final String queryString =
"WITH MEMBER [Measures].[Foo] AS "
+ Util.singleQuoteString(expr)
+ " SELECT FROM [Sales]";
final Query query = connection.parseQuery(queryString);
query.resolve();
final Formula formula = query.getFormulas()[0];
final Exp expression = formula.getExpression();
// Build a list of the dimensions which the expression depends upon,