HibernateMappingGlobalSettings hgs = new HibernateMappingGlobalSettings();
hgs.setDefaultPackage("org.hibernate.tool.hbm2x.hbm2hbmxml");
hgs.setDefaultAccess("field");
hgs.setDefaultCascade("save-update");
Exporter gbsExporter = new HibernateMappingExporter(getCfg(), getOutputDir() );
( (HibernateMappingExporter)gbsExporter).setGlobalSettings(hgs);
gbsExporter.start();
File outputXml = new File(getOutputDir().getAbsolutePath() + "/org/hibernate/tool/hbm2x/hbm2hbmxml/BasicGlobals.hbm.xml");
assertFileAndExists(outputXml);
SAXReader xmlReader = this.getSAXReader();