testContext.getConnection()
.getSchema().lookupCube("Sales", true);
Hierarchy hier =
cube.getDimensions()[2].getHierarchies()[0];
Member hierMember = hier.getAllMember();
CellRegion measuresRegion = cacheControl.createMeasuresRegion(cube);
CellRegion hierRegion =
cacheControl.createMemberRegion(hierMember, true);
CellRegion flushRegion =
cacheControl.createCrossjoinRegion(measuresRegion, hierRegion);
cacheControl.flush(flushRegion);
}