public void testGenerateMappingAndReadable() throws MalformedURLException {
cfg.buildMappings();
HibernateMappingExporter hme = new HibernateMappingExporter(cfg, getOutputDir());
hme.start();
assertFileAndExists( new File(getOutputDir(), "Person.hbm.xml") );
assertFileAndExists( new File(getOutputDir(), "AddressPerson.hbm.xml") );
assertFileAndExists( new File(getOutputDir(), "AddressMultiPerson.hbm.xml") );
assertFileAndExists( new File(getOutputDir(), "MultiPerson.hbm.xml") );