DriverManager.getConnection("jdbc:mondrian:embedded");
OlapConnection olapConnection =
((OlapWrapper) connection).unwrap(OlapConnection.class);
// Create a parser.
MdxParserFactory parserFactory = olapConnection.getParserFactory();
MdxParser parser = parserFactory.createMdxParser(olapConnection);
SelectNode query = parser.parseSelect(
"select {[Measures].[Unit Sales]} on columns\n"
+ "from [Sales]");
query.getAxisList().get(0).setNonEmpty(false);